Build, test, and debug regular expressions
This regular expression validates a standard two or three-word name string, ensuring proper capitalization (e.g., First Last or First Middle Last). It requires each part to begin with a single uppercase letter followed by one or more lowercase letters, and optionally allows for trailing spaces or periods. It is typically used for validating user input fields like full names.