Test, validate and match regular expressions
This regex is designed to parse full names into first and last name components. The first group lazily captures the first name(s) up to the final space. The second group captures the last name while explicitly supporting accented Latin characters (like ã, ç, ü), optional hyphens for compound names, and apostrophes. It is ideal for extracting or validating user names in forms, especially those with European or Portuguese variations.