i am trying to validate a field for a double, but not allow commas
the regex specifies
any number of whole number digits [0-9]*
no comma [^,]*
an optional decimal point .?
and any number of digits after the decimal [0-9]*
the whole thing looks like this:
[0-9]*[^,]*.?[0-9]*
what am i doing wrong?
as is i am having to use a range validator for double, and give it 0
as the minimum, but i would prefer the regex.
also, can the regex validator be used to "clean" out bad values,
meaning as long as SOME valid characters are in there, it doesn't
generate an error, but when the form is posted, unwanted chars
such as dollar sign and comma are ignored and not posted?
thanks in advance