Build, test, and debug regular expressions
This PCRE regex is designed to parse and extract components from EIM (Energy Imbalance Market) non-location spread trading identifiers. It breaks down the structured contract code into named groups such as commodity, market, derivative type (PHY or FUT), and various tenor details (e.g., year, month, or custom periods). It is particularly useful in energy trading data pipelines for standardizing and analyzing contract metadata.