Skip to content

Instantly share code, notes, and snippets.

@0x49D1
Last active August 25, 2017 08:23
Show Gist options
  • Save 0x49D1/6b9751a252046511c8017c768ee20fe6 to your computer and use it in GitHub Desktop.
Save 0x49D1/6b9751a252046511c8017c768ee20fe6 to your computer and use it in GitHub Desktop.
Escape LTR/RTL/TAB/Line endings
string t = Regex.Replace("\u2649\u0009010\u200F260\\15200F609", @"[\u0009\u200F\u200E\u000D]", "");
Console.WriteLine(t); // \u0009 - TAB, \u200F - RTL, \u200E - LTR, \u000D - new line (carriage return char (cr)) and this will leave only: ?10260\15200F609
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment