Test, validate and match regular expressions
Matches person name patterns like 'Mr. Smith' or 'Dr. Jones' — a capitalized word, any trailing character (typically a period), a space, then a surname. Note the [A-z] class is broader than intended, also matching symbols like brackets, underscore, and backtick. With global and multiline flags, it finds all occurrences on every line. Useful for validating or extracting names with honorific titles from text.