Created
March 25, 2013 15:36
-
-
Save JayDouglass/5238005 to your computer and use it in GitHub Desktop.
Remove non-alphanumeric characters from a string
\W matches non-alphanumeric characters
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.Replace("(501) 612-7315", @"\W", "") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment