Created
December 3, 2010 21:37
-
-
Save jpobst/727598 to your computer and use it in GitHub Desktop.
// Match US Social Security numbers
// 123-45-6789
Regex ssn = new Regex (RegexHelper. Digits (3). Character ('-'). Digits (2). Character ('-'). Digits (4)
); // Match email addresses
Regex email = new Regex (RegexHelper. AlphaNumeric (
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
// Match US Social Security numbers | |
// 123-45-6789 | |
Regex ssn = new Regex (RegexHelper. | |
Digits (3). | |
Character ('-'). | |
Digits (2). | |
Character ('-'). | |
Digits (4) | |
); | |
// Match email addresses | |
Regex email = new Regex (RegexHelper. | |
AlphaNumeric ().AtLeastOne (). | |
Character ('@'). | |
AlphaNumeric ().AtLeastOne (). | |
Character ('.'). | |
InGroup ("com", "net", "org") | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment