I am new to Regular Expression concept.
I tried to make currency regular expression in which
Amount should be a formatted number string, using ‘,’ for the thousands separator and ‘.’ for the decimal separator.
Amount should have exactly 2 decimal places
Amount should be a nonzero,positive value
I tried this
test1= /^\d{1,3}?([,]\d{3}|\d)*?\.\d\d$/;
test1.test(1,100.00);
But its not fulfilling my requirements.Suggest me how come i achieve this.