Re: [PHP] validate names with regex

2003-11-12 Thread John W. Holmes
Chris W. Parker wrote: CPT John W. Holmes on Wednesday, November 12, 2003 2:09 PM said: $match = "^[a-z]+([- ]{1}|(\\\'))?[a-z]+$"; along with eregi(), but it can (should) be easily adapted to a syntax compatible with preg_match(). I'm wondering two things:

RE: [PHP] validate names with regex

2003-11-12 Thread Chris W. Parker
Eugene Lee on Wednesday, November 12, 2003 3:12 PM said: > The range of human names is so wide that there probably isn't a way to > validate names. What part of one's name do you consider valid? What part of one's name do I consider valid? Umm... probably the whole

RE: [PHP] validate names with regex

2003-11-12 Thread Chris W. Parker
CPT John W. Holmes on Wednesday, November 12, 2003 2:09 PM said: > $match = "^[a-z]+([- ]{1}|(\\\'))?[a-z]+$"; > > along with eregi(), but it can (should) be easily adapted to a syntax > compatible with preg_match(). I'm wondering two things: 1. Is there a

Re: [PHP] validate names with regex

2003-11-12 Thread Eugene Lee
On Wed, Nov 12, 2003 at 01:56:10PM -0800, Chris W. Parker wrote: : : Can someone post a function or regex that can validate names (first and : last)? The most important bit is that names like O'Malley and Hope-Jones : are not barred. The range of human names is so wide that there probably isn't a

Re: [PHP] validate names with regex

2003-11-12 Thread CPT John W. Holmes
From: "Chris W. Parker" <[EMAIL PROTECTED]> > Can someone post a function or regex that can validate names (first and > last)? The most important bit is that names like O'Malley and Hope-Jones > are not barred. I use this: //allow a possible ', -, or space in name. ' will //be re