[thelist] numeric only regex?

Tom Dell'Aringa pixelmech at yahoo.com
Tue Aug 2 14:51:45 CDT 2005


Hi, I'm trying to come up with a simple regex that will allow me to test for numbers 0-9 ONLY. The
numbers are held in a variable 'numtext'. I got as far as:

var match = /[\d\d]/.test(numtext);

But this is not working. Can someone help out, regex is not my thang..thanks.

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