-----Original Message----- From: David Kaufman [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 14, 2006 1:23 PM To: beginners@perl.org Subject: Re: regexpressions help
>"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 Oh, and don't forget that some people have only one name. It's rare, but it can really throw things for a loop if you don't plan for it. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>