I can't figure out a regular expression to validate my name entry field. Our names are entered First Last (Bryan Fatka) and I can get that to work, but my problem is with people who have spaces in their names. I'm using (\w+)\s*([\w\-]+)\s* as the expression to deal with first and last names that includes hyphens. . .but how do you allow for a "maybe" third name? For instance "Grace Mary Betony" with two first names or "Jake Di Ackova" with two last names?
The field is a single field, and I'm using a database lookup, but some people start typing a name and then forget to click on the lookup name and just click enter. . .so wanting to make sure they get the full name entered. Thanks for any help.