I need a regular expression validation expression that will
ALLOW
- positive number(0-9)
,
and.
DISALLOW
- letter(a-z)
- any other letter or symbol except
.
and,
for example, on my asp.net text box, if I type anything@!#--
, the regular expression validation will disallow it, if I type 10.000,50
or 10,000.50
it should allowed.
I've been trying to use this regex:
^\d+(\.\d\d)?$
but my textbox also must allow ,
symbol and I tried using only integer regex validation, it did disallow if I type string, but it also disallow .
and ,
symbol while it should allow number(0-9) and also .
and ,
symbol