I can't figure out why my regular expression is breaking.
I want it to match:
$100,000
100,000
100000 (I know it doesn't match this, but I want it to)
preg_match("/^\$?(?!0.00)\d{1,3}(,\d{3})*(\.\d\d)?$/", $string);
So how can I make it match the last one too, and why am i getting this error? This regular expression works fine in my javascript check.
Thanks