fork download
  1. using System;
  2. using System.Text.RegularExpressions;
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. var str = "StopService::\r\n697::12::test::20::a@yahoo.com::20 Main Rd::Alcatraz::CA::1200::Please send me Information to\r\nA@gmail.com::0::::";
  8. var rgx = new Regex(@"(?<=^[^:]*::)[\r\n]+");
  9. Console.WriteLine(rgx.Replace(str, string.Empty));
  10. }
  11. }
Success #stdin #stdout 0.07s 24480KB
stdin
Standard input is empty
stdout
StopService::697::12::test::20::a@yahoo.com::20 Main Rd::Alcatraz::CA::1200::Please send me Information to
A@gmail.com::0::::