Created
June 14, 2014 12:26
-
-
Save wiltonbsilva/cff6ed2970d11e8f8934 to your computer and use it in GitHub Desktop.
Regular Expression to match a Brazilian CPF (similar to an SSN)
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: | |
^([-\.\s]?(\d{3})){3}[-\.\s]?(\d{2})$ | |
Test: | |
345.753.428-40 | |
Test: | |
345.753.422.99 | |
Test: | |
123-543-667.54 | |
Test: | |
123 456 789 01 | |
Test: | |
34575342840 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thranks!