Hi
I want regular expression that allows both integer & decimal number only??
Thanks
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sanjeeb LenkaPosted Nov 30, 2013, 5:15 AM
^[1-9]\d*(\.\d+)?$
or
^\d*[0-9](|.\d*[0-9]|)*$