Looking for a simple way (Function/RegEx) to validate a number with grouped thousands.
Example Numbers:
.00 - 999.00 should validate
1,000.00 should validate
100,000.00 etc... should validate
100,000,000,000,000.00 should validate
Now I've seen the number_format(), but this formats the number not validates.
I wanted to use a RegEx but lost on how to do so.
preg_match(/^[\d]\,?\.[\d]{2}$/, $number);
but this doesn't work.
I've also looked at the money_format() but again this is format and not validation.