in reply to Reasonable RegExps
Is There a better way?These regexes should fit your criteria
Check out perlre for more info on the above regexes.my $fullname = qr/\A[a-z]{1,30}\z/i; my $username = qr/\A[a-z]\w{2,16}\z/i; my $password = qr/\A.{6,30}\z/;
_________
broquaint
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Reasonable RegExps
by demerphq (Chancellor) on May 17, 2003 at 19:12 UTC |