Created
April 9, 2013 02:42
-
-
Save dstarh/5342503 to your computer and use it in GitHub Desktop.
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
string pattern = @"[^ -~]"; | |
string input = THE XML STRING | |
string replacement = ""; | |
Regex rgx = new Regex(pattern); | |
string result = rgx.Replace(input, replacement); | |
Console.WriteLine("Original String: '{0}'", input); | |
Console.WriteLine("Replacement String: '{0}'", result); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment