Skip to content

Instantly share code, notes, and snippets.

@maxxscho
Created August 24, 2012 14:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save maxxscho/3451101 to your computer and use it in GitHub Desktop.
Save maxxscho/3451101 to your computer and use it in GitHub Desktop.
RegEx for decimal numbers with 'commas' or 'dots'
/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:(\.|,)\d+)?$/
@wavecoders
Copy link

280980989280938029

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment