Test, validate and match regular expressions
This regex matches whole words (sequences of word characters: letters, digits, underscores) that are delimited by whitespace or string boundaries. Group 2 captures each word, while the positive lookahead ensures the word ends at whitespace or end-of-string without consuming the delimiter, keeping it available for the next match. Useful for tokenizing text, extracting individual words, or processing whitespace-separated content in text parsing tasks. The global flag enables finding all words in the input.