Created
March 30, 2014 08:55
-
-
Save internetbird/9869847 to your computer and use it in GitHub Desktop.
Regex Heaven
This file contains 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
//Phone number regex | |
//A simple match for up to 10 digits or {2-3}-{6-7} | |
var simplePnoneRegex = new Regex(@"^\d{2,3}(-)?\d{6,7}$"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment