From: Urban Hafner Date: 2007-08-19T01:53:49+09:00 Subject: Re: Is this the perfect regex for validating first & last names? -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Aug 18, 2007, at 19:39 , Todd Burch wrote: > Perhaps a fairly bold statement, coming from a novice regex'er. :) > > I'm creating a form (php) and have conjoured up this regex. Are you really sure you want to ask a PHP question in a Ruby forum? I guess you'll get a better answer in a PHP forum. > My objective with this regex is to be sure I get a valid person's > name. > With that, I am assuming a real name does not contain 0-9, punctuation > chars, programming symbols, and so on. I'm allowing more than one > part > names, like "Mary Beth" and "de la Cruz", and I'm being flexible in > case > the use more than one blank between names. I've included all the > diacritics I could find (except the a-e character that is merged - is > this still in use?) Sure it is (in Danish an Norwegian). And there's the � character. Oh and those (and a few others) could also be upper case ... Urban -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (Darwin) iD8DBQFGxyQXggNuVCIrEyURAsT1AJ4nKS/W6CXvGx4sCVjfLo0dopJuFQCfSPjd AZvI8VsCdYT/2ZmxgTNO904= =Tq3q -----END PGP SIGNATURE-----