Beg to disagree. If I am not wrong, you are trying to validate a
currency and you have got an European client. In most parts of Europe,
DOT and COMMA are interchangeably used. Therefore, 1,000.00 is same as
1.000,00.
With this background, the RegEx ^[0-9.,]*(\,)[0-9]{2} will also
validate ",,...28.12" which is incorrect.
"Regular Expression Currency Validation" and modifying it a little
gives me the following.
((\d{1,3}(\,\d{3})*(\.\d{2})?)|(\d{1,3}(\.\d{3})*(\,\d{2})?))
thousand separator. It will not work for the Indian Number system
(comma after ten thousand).
HTH,
Regards,
Natarajan
_______________________________________________
To unsubscribe, email ilugc-request@xxxxxxxxxxxxx with
"unsubscribe <password> <address>"
in the subject or body of the message.
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc