[thelist] numeric only regex? [ and one more perhaps?]
Tom Dell'Aringa
pixelmech at yahoo.com
Wed Aug 3 08:32:10 CDT 2005
--- "Kowalkowski, Lee (ASPIRE)" <lee.kowalkowski at hmrcaspire.com> wrote:
> I couldn't see a check for non-alphabetic characters in your sample.
>
> Using regex:
>
> if(!/^[a-z]{3}[a-z]*[*]?$/i.test(nametext.value))
> {
> // error.
> }
>
> ... assuming the wildcard must be at the end. Can the wildcard be anywhere,
> even at the start?
Hmm, hadn't thought about it, but I would say it would be best to allow that if it was not too
hard. User tend to do strange things ;)
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