On Tue, 14 Feb 2006, Tom Phoenix wrote: > On 2/14/06, Gerald Wheeler <[EMAIL PROTECTED]> wrote: > > > I am trying to allow input of a person's first and last name in one > > form field, nothing more, nothing less > > Robert de Niro? > Mary Kay Place? > Arthur Conan Doyle? > Harry S Truman? > Kim Jong-il? > brian d foy? > Sting? > John Paul II? > George W. Bush? > Prince Charles?
Or, my favorite, Jennifer 8 Lee: http://en.wikipedia.org/wiki/Jennifer_8._Lee So, as others have asked, is it really pragmatic to come up with a regex that will properly recognize any of these eccentric-but-real surnames, while rejecting "non-surnames" like, say... Time And Place Bee Sting Rose Bush ...which presumably are not names. Put another way, if someone says their name is "8", what business does your software have in trying to convince them otherwise? You have a slim chance of catching a typo -- though if you think about it most people that can type at all well have probably long-since committed their own name to finger memory, so typoes are unlikely -- but most likely you're just going to get someone frustrated with you. -- Chris Devers DO NOT LEAVE IT IS NOT REAL -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>