Build, test, and debug regular expressions
This PCRE regex (with multiline and global flags) extracts bill codes by matching patterns with optional leading zeros or alphanumeric prefixes, followed by an optional non-digit separator, and ending with a numeric segment. It enforces that after any separator, digits must follow, making it useful for parsing invoice or bill identifiers in various formats.