D
DbZ
Hi, I really need the help of a regex genius!!!
I'm a bit new to regex, just started to dabble a bit in it. I'm busy
writing a financial app where i have to validate a couple of fields
according to currency. Now - that being said - I have kind of figured
out a little on my own.
I have the following regex validating the field -
/^\d+(\.\d{2})?$/ - which looks for a value of 1000000.00 or
similar
If someone could give me some advice on tweaking it for allowing
spaces
for e.g. 1 000 000.00
Basically it needs to check for digit grouping as above, but also
allow for normal input
ie - 1000000.00
If anyone could help me it would be really great!!!! and you would
probably make my day.
Thank You
dbz
I'm a bit new to regex, just started to dabble a bit in it. I'm busy
writing a financial app where i have to validate a couple of fields
according to currency. Now - that being said - I have kind of figured
out a little on my own.
I have the following regex validating the field -
/^\d+(\.\d{2})?$/ - which looks for a value of 1000000.00 or
similar
If someone could give me some advice on tweaking it for allowing
spaces
for e.g. 1 000 000.00
Basically it needs to check for digit grouping as above, but also
allow for normal input
ie - 1000000.00
If anyone could help me it would be really great!!!! and you would
probably make my day.
Thank You
dbz