Created
June 14, 2014 10:30
-
-
Save wiltonbsilva/75b032d6fc6504145863 to your computer and use it in GitHub Desktop.
Regular Expression to match monetary values
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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