Test, validate and match regular expressions
This regex matches words that begin with an uppercase letter followed by one or more word characters (letters, numbers, or underscores). The first capital letter is captured in a group for later reference. With the global and multiline flags, it can find all such matches throughout a multiline text, making it useful for identifying proper nouns, sentence beginnings, or acronyms in text processing tasks.