[thelist] numeric only regex? [ and one more perhaps?] [solved]
Tom Dell'Aringa
pixelmech at yahoo.com
Wed Aug 3 09:22:12 CDT 2005
--- Chris at globet.com wrote:
> > It's close - it allows aa* (which makes our server throw an
> > error - it needs 3 chars). I changed {3,} to {4,} and it
> > seems to work...
>
> The only problem with that would be that "aaa" would no longer be
> matched. How about the following:
>
> var namematch = /^[a-zA-Z]{3,}$/.test(nametext.value);
> namematch = (namematch || /^[a-zA-Z\*]{4,}$/.test(nametext.value));
aaa! hehe that seems to work! Thanks a lot Chris!
Tom
http://www.pixelmech.com/
Melissa: Ace, Where are you?
Ace Ventura: I'm in Psychoville and Finkle's the Mayor.
More information about the thelist
mailing list