Test, validate and match regular expressions
This regex parses OCC-style options ticker symbols by capturing four components: the underlying symbol (non-digits), the expiration date (digits), the option type letter (C for call or P for put), and the strike price (digits). For example, it breaks AAPL230615C00150000 into AAPL, 230615, C, and 00150000. With global and multiline flags, it can extract multiple option symbols across lines, making it useful for trading platforms and financial data processing.