Test, validate and match regular expressions
This regular expression is designed to match financial futures contract symbols. It captures a prefix of any characters, followed by a standard futures month code (F, G, H, J, K, M, N, Q, U, V, X, Z), any optional letters, and a 1 to 5-digit year suffix. It is commonly used in financial applications, trading platforms, and market data parsers to identify and validate specific contract expirations like 'ESZ23' or 'CLF2024'.