Test, validate and match regular expressions
This regex matches a single digit (0-9), followed by a space, followed by either the letter 'a' or 'b'. It is useful for simple checks on formatted strings, such as validating a short code, list item format, or data entry where a digit and a letter range are expected in sequence. The pattern is case-sensitive and applied globally on each line due to the gm flags.