?
=?ISO-8859-15?Q?Tobias_Schr=F6er?=
Hi,
I'd like to validate a number input using a regular expression. This
would be done by "\d*". Now the input may have a fdecimal separator,
wich would be matched by "\d*(\.|,)\d*" (allowing the , as separator as
well).
What I need know is to ensure, that the total length of the string does
match a fixed length. Without the decimal separator this is trivial, but
with decimal separator I am stuck, as I am not too deep into regular
expression syntax.
TIA,
Tobi
I'd like to validate a number input using a regular expression. This
would be done by "\d*". Now the input may have a fdecimal separator,
wich would be matched by "\d*(\.|,)\d*" (allowing the , as separator as
well).
What I need know is to ensure, that the total length of the string does
match a fixed length. Without the decimal separator this is trivial, but
with decimal separator I am stuck, as I am not too deep into regular
expression syntax.
TIA,
Tobi