PDA

View Full Version : how to setup the regular expression for only number only in the textfield



Supersuper
4 Jun 2007, 8:06 AM
how to setup the regular expression for only number only in the textfield

tryanDLS
4 Jun 2007, 8:20 AM
something like /[0-9]+/ There are a number of references on the web for regex samples. Try www.regexlib.com

tasomaniac
10 May 2011, 4:51 AM
Where do I have to put this regex in the code? Is this really that hard?

I want to accept only numbers. How can I do that?

fay
11 May 2011, 6:50 AM
Taso, you've posted in an unsupported (and mostly unread) forum, I'm guessing you're looking for an Ext.form.NumberField (http://dev.sencha.com/deploy/ext-3.3.1/docs/?class=Ext.form.NumberField).