Test, validate and match regular expressions
This PCRE2 regular expression matches two distinct alphanumeric patterns: one or more digits followed by letters and then digits (e.g., '123abc456'), or one or more letters followed by digits (e.g., 'abc123'). It utilizes multiple capture groups to isolate the numeric and alphabetic segments for each pattern alternative. With the 'gm' flags, it is designed to find all such patterns across multiple lines, making it useful for parsing mixed content like product codes or serial numbers.