Skip to content

Instantly share code, notes, and snippets.

@phpleo
Created July 27, 2011 16:21
Show Gist options
  • Select an option

  • Save phpleo/1109729 to your computer and use it in GitHub Desktop.

Select an option

Save phpleo/1109729 to your computer and use it in GitHub Desktop.
Regex
// entero
^\d+$
// IntDecimal1To2
^\d+$|^\d+\.\d{1,2}$
// Decimal number with thousands separator / http://RegExr.com?2skir
^(\d+(\,\d{3})*(\.\d{1,2})?)?$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment