Last active
March 31, 2016 15:11
-
-
Save maxxscho/796a1b604ff66f7a99230d03ec2f76c1 to your computer and use it in GitHub Desktop.
Regular expression for matching a number with optional decimals, with "." or "," as comma-separator. The number can be signed or unsigned.
This file contains hidden or 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
/^\-?[0-9]+([\.|\,]{1}[0-9]{1,2})?$/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment