Skip to content

Instantly share code, notes, and snippets.

@jskeet
Created December 4, 2018 07:30
Show Gist options
  • Save jskeet/a52a799b17d83a99db3725a0a7a7443b to your computer and use it in GitHub Desktop.
Save jskeet/a52a799b17d83a99db3725a0a7a7443b to your computer and use it in GitHub Desktop.
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