I want a text field that accept numeric values OR just spaces and not number WITH space. What is the regular expression for this. Please help... Thanks in advance.
eg: valid = '456631', '' , ' ' AND '123 1232' = invalid
I want a text field that accept numeric values OR just spaces and not number WITH space. What is the regular expression for this. Please help... Thanks in advance.
eg: valid = '456631', '' , ' ' AND '123 1232' = invalid
use following regex :
^[\d ]+$