using System.Text.RegularExpressions;
public static void Main(string[] args)
Console.WriteLine(ZipZap("zipXzap"));
Console.WriteLine(ZipZap("zopzop"));
Console.WriteLine(ZipZap("zzzopzop"));
public static string ZipZap(string str)
Regex rx = new Regex(@"(z)(.{1})(p)");
return rx.Replace(str, match => match.ToString().Remove(1,1));