Test, validate and match regular expressions
Captures three named groups split by literal backslash separators: 'style' (any chars except backslash), 'color' (any chars except backslash), and 'size' (any chars until a dollar sign terminator). Useful for parsing backslash-delimited format strings such as 'bold\red\12$' in templating, font/style specs, or config parsing. Global flag finds all occurrences, i enables case-insensitive matching, and x allows extended whitespace in the pattern.