Skip to content

Instantly share code, notes, and snippets.

@Kaylebor
Created February 23, 2017 08:09
Show Gist options
  • Save Kaylebor/d353e95691a19c18f88e58095b009dd5 to your computer and use it in GitHub Desktop.
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.
/(?!-,)(?!^,)(^-?\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