I want to match numbers between 0 and 799 ONLY,if it doesn't have a comma in them.
$660
http://stackoverflow.com/questions/6560030/what-regex-can-i-use-tovalidate-anumber-between-0-and-255
I've tried using this RegEx. --> \b(0*(?:[0-9]?[0-9]?[0-9]?|100))\b
and it works very well.
(If the number is between 0 and 999)
Need help with changing my regex:
- I need it to work in JavaScript.
- I'd like to validate the number in the first row using regex after the $ (I only need It,if It's between 0 and 799)
- If it has a comma in it then it should be ignored( like numbers 799+)
- I don't want it to accept numbers with comma in them,because my current regex thinks it's valid. (Or at least the 6,245 should be equal to 6245 so my regex can ignore it.)