Skip to content

Instantly share code, notes, and snippets.

@wiltonbsilva
Created June 14, 2014 10:30
Show Gist options
  • Save wiltonbsilva/75b032d6fc6504145863 to your computer and use it in GitHub Desktop.
Save wiltonbsilva/75b032d6fc6504145863 to your computer and use it in GitHub Desktop.
Regular Expression to match monetary values
RegEx:
^(\d{1,3})+(\.\d{3})*(,\d{2})$
Test:
10.000.234,07
Test:
12,89
Test:
3.765,35
Test:
3.76,87
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment