Created
February 23, 2017 08:09
-
-
Save Kaylebor/d353e95691a19c18f88e58095b009dd5 to your computer and use it in GitHub Desktop.
List of difficult regexes I've used. Over time, entries might become more complicated.
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
/(?!-,)(?!^,)(^-?\d*,?\d{0,2}$)/ //Number, positive or negative, with up to two decimals |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment