Skip to content

Instantly share code, notes, and snippets.

@rasmusbergpalm
Created August 27, 2012 07:58
Show Gist options
  • Save rasmusbergpalm/3486574 to your computer and use it in GitHub Desktop.
Save rasmusbergpalm/3486574 to your computer and use it in GitHub Desktop.
Test whether a number follows thousand and decimal seperator rules
^-?(\d{1,3}(\,\d{3})*|(\d+))(\.\d*)?$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment