Test, validate and match regular expressions
Validates account or username strings line by line: the first character must be a letter, digit, or underscore, and subsequent characters may be letters, digits, underscores, hyphens, or dots. Commonly used for form input validation, user registration checks, or filtering valid identifiers in multi-line text, since the global and multiline flags allow batch validation of many entries at once