Created
January 6, 2017 14:36
-
-
Save Quinten/385118d4488ecab802d309fdbbefb4d1 to your computer and use it in GitHub Desktop.
price or real world number regex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var priceRegex = /^((((([1-9]\d{0,2})(,\d{3})?)|([1-9]\d*)|\d{1})(\.\d+){0,1})|(((([1-9]\d{0,2})(\.\d{3})?)|([1-9]\d*)|\d{1})(,\d+){0,1}))$/; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment