Build, test, and debug regular expressions
This regex matches a hyphen surrounded by whitespace, followed by a specific formatted code. The code is either six uppercase alphanumeric characters, two spaces, and two digits (e.g., 'ABC123 45'), or six uppercase alphanumeric characters directly followed by four digits (e.g., 'ABC1234567'). It is useful for extracting or validating identifiers, order numbers, or part codes in text logs or structured data where a delimiter precedes the code.