"Hans Meier (John Doe)" <[EMAIL PROTECTED]> wrote: > > Gerald Wheeler wrote: >> I am trying to allow input of a person's first and last name in one >> form field, nothing more, nothing less >> >> There should be only one uppercase A-Z character followed by one or >> more lowercase a-z characters followed by one space followed by one >> uppercase A-Z character followed by one or more lowercase a-z >> characters, nothing more. > > Further, for userfriendliness, you could allow other whitespace, and > more between the words, and additonally around them, and trim them > away *afterwards*:
Also for user-friendliness... Keep in mind that lots of people have two-word last names (Dick Van Dyke), intersticial caps in their names (Matt LeBlanc and LaToya Jackson), apostrophes crammed in there (Conan O'Brien) and/or non-English letters in their names ...and boy, do people tend to get attached to these particular strings of characters, insisting on their names being spelled the way they like! -dave -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>