Test, validate and match regular expressions
This regular expression matches a Brazilian document format starting with a 7-digit number separated by optional dots (e.g., 12.34.567), followed by an optional space and a 3-character alphanumeric code, and ending with an optional 2-character code prefixed by a slash. It is useful for extracting or validating specific structured document codes in Brazilian systems, such as state or regional identifiers.