Build, test, and debug regular expressions
Matches full names composed of capitalized words separated by spaces, including hyphenated names (e.g., Mary-Jane) and apostrophe names (e.g., O'Brien). It captures each name segment—capitalized words, the hyphen/apostrophe connectors, and lowercase suffixes after connectors—ensuring every word starts with a capital letter. With the gms flags, it works line-by-line across multiline input, making it useful for extracting or validating person names in text parsing and form validation.