Test, validate and match regular expressions
Matches sequences of one or more word characters, which includes letters, numbers, and underscores. It is highly useful for extracting words, variable names, or alphanumeric identifiers from a body of text, such as pulling string elements from a JavaScript array. The global (`g`) flag ensures that all matches in the string are found rather than stopping at the first one.