Test, validate and match regular expressions
Matches a single character that is a digit (0-9), lowercase letter (a-z), or the literal pipe character (|). Note that the pipe inside the character class is treated as a literal character, not as alternation. The global flag enables finding all matches in the input string.