Re: Wanted: Good Name Filtering regex

2002-11-26 Thread Chuck Tomasi
Hmmm I'm not getting where I want to go. Consider the following code: #!/usr/bin/perl -w @a = ( "chuck",# Good "chuck99", # bad - numbers in a name? "chuck_5", # bad - numbers/underscore in a name "chuck!3", # bad - symbols? "chuck t",

Re: Wanted: Good Name Filtering regex

2002-11-26 Thread Chuck Tomasi
> Why not go with /[\w ]+/ > \s contains more than just a ' ' and I don't know if an apostrophe in a name > is really valid or not. > Rather, I think the earlier suggestion of /[\w ]{,20}/ might be better so you > can limit the string length to only the first 20 characters. > Similarly, I would l

Re: Wanted: Good Name Filtering regex

2002-11-26 Thread Tom Allison
Chuck Tomasi wrote: System Specs Perl 5.6.1 (dev) 5.8.0 (prod) Mac OS X 10.2.2 (dev) NetBSD 1.5.2 (prod) MySQL 3.23.52 I'm writing a web form to accept user applications. Like most programs, I'd like to keep the garbage characters out to limit hacking attempts. I want to verify the

Re: Wanted: Good Name Filtering regex

2002-11-26 Thread Mystik Gotan
- Bob Erinkveld (Webmaster Insane Hosts) www.insane-hosts.net MSN: [EMAIL PROTECTED] From: Chuck Tomasi <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Wanted: Good Name Filtering regex Date: Tue, 26 Nov 2002 05:56:40 -0600 (CST) System Specs Perl 5.6.1 (dev) 5.8.0 (prod)

Wanted: Good Name Filtering regex

2002-11-26 Thread Chuck Tomasi
System Specs Perl 5.6.1 (dev) 5.8.0 (prod) Mac OS X 10.2.2 (dev) NetBSD 1.5.2 (prod) MySQL 3.23.52 I'm writing a web form to accept user applications. Like most programs, I'd like to keep the garbage characters out to limit hacking attempts. I want to verify the firstname and last na