Test, validate and match regular expressions
Matches one or more consecutive word characters (letters, digits, and underscores). With the global flag it finds every word occurrence in a string, while multiline enables line-by-line processing. Commonly used for tokenizing text, extracting words, counting word frequency, or basic input validation.