Last active
December 25, 2015 02:19
-
-
Save smakhtin/6901668 to your computer and use it in GitHub Desktop.
Fast string cleaning in C# via LINQ
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
| public static string UseWhere(string dirtyString) | |
| { | |
| return new String(dirtyString.Where(Char.IsLetterOrDigit).ToArray()); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment