I am trying to write a regular expression that meets the following requirements:
1) The person must enter their first and last name (Keeping in mind some people's last name can be "Del La Hurst")
2) The person may use the literal characters . , ' (e.g, John O'Neal)
3) The person may not use excessive spaces. (e.g., an invalid entry would be "John Doe ")
4) Pretty much anyone's name, would be accepted. Even something like "John O'Neal, jr."
I have tried the three RegExp objects below (I cannot use patterns), but they do not seem to work. What is wrong with the below regular expressions, and does anyone know of a regular expression that would match my requirements?
I've set this to 400 points as this is urgent. Thanks!