Created
December 4, 2018 07:30
-
-
Save jskeet/a52a799b17d83a99db3725a0a7a7443b to your computer and use it in GitHub Desktop.
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
using System; | |
using System.Text.RegularExpressions; | |
class Test | |
{ | |
static void Main() | |
{ | |
string before = @":[email protected] private #timing :\u000314CODEERROR:\u0003 [\u000304X012\u0003] Server time is different than UTC"; | |
string after = Regex.Replace(before, @"\\u0{3}3\d{0,2}", string.Empty); | |
Console.WriteLine($"Before: {before}"); | |
Console.WriteLine($"After: {after}"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment