Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9786

Regular expression for csv of numbers less than 1,000

$
0
0

I am going to use javascript to validate a string that needs to be:only digits and commascan't end or start with a commaeach number between the commas has to less than 1,000no negativesno periods, just digits and commas

I tried \d{1,3}(,{1,3})*but it doesn't quite do what I mentioned above


Viewing all articles
Browse latest Browse all 9786

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>