Can any body help how to validate the price field in jquery and php the sample currency is
120
120.25
12,23,000
1,000.89
I am using this expression but it does not accept comma(,)
it is in jquery
value.match(/^[+]?\d+(?:\.\d{1,3})?$/);
and in php i am using
return (bool) preg_match('/^[0-9]+(\.[0-9]{0,2})?$/', $str);