Test, validate and match regular expressions
This regex matches Discord usernames in the classic format of name#tag, where the tag consists of exactly four digits. It ensures the character before '#' is neither a space nor another '#', preventing malformed matches. Useful for validating user input or extracting Discord handles from text. The global and multiline flags allow finding multiple occurrences across lines.