using System;
using System.Text .RegularExpressions ;
class Program
{
static void Main( )
{
string text = @"Контакты в Москве tel:123-45-67, 123-34-56; fax:123-56-45.
Контакты в Саратове tel:12-34-56; fax:12-56-45" ;
Console.WriteLine ( "Старые данные " + text) ;
// Удаляем "tel" и "fax" с двоеточием, если оно присутствует.
string newText = Regex.Replace ( text, @"\b (tel|fax):?\s*" , "" , RegexOptions.IgnoreCase ) ;
Console.WriteLine ( "Новые данные " + newText) ;
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uVGV4dC5SZWd1bGFyRXhwcmVzc2lvbnM7CgpjbGFzcyBQcm9ncmFtCnsKICAgIHN0YXRpYyB2b2lkIE1haW4oKQogICAgeyAgICAgICAgICAgIAogICAgICAgIHN0cmluZyB0ZXh0ID0gQCLQmtC+0L3RgtCw0LrRgtGLINCyINCc0L7RgdC60LLQtSB0ZWw6MTIzLTQ1LTY3LCAxMjMtMzQtNTY7IGZheDoxMjMtNTYtNDUuIAogICAgICAgICAgICDQmtC+0L3RgtCw0LrRgtGLINCyINCh0LDRgNCw0YLQvtCy0LUgdGVsOjEyLTM0LTU2OyBmYXg6MTItNTYtNDUiOwogICAgICAgIENvbnNvbGUuV3JpdGVMaW5lKCLQodGC0LDRgNGL0LUg0LTQsNC90L3Ri9C1ICIgKyB0ZXh0KTsKCiAgICAgICAgLy8g0KPQtNCw0LvRj9C10LwgInRlbCIg0LggImZheCIg0YEg0LTQstC+0LXRgtC+0YfQuNC10LwsINC10YHQu9C4INC+0L3QviDQv9GA0LjRgdGD0YLRgdGC0LLRg9C10YIuCiAgICAgICAgc3RyaW5nIG5ld1RleHQgPSBSZWdleC5SZXBsYWNlKHRleHQsIEAiXGIodGVsfGZheCk6P1xzKiIsICIiLCBSZWdleE9wdGlvbnMuSWdub3JlQ2FzZSk7CiAgICAgICAgQ29uc29sZS5Xcml0ZUxpbmUoItCd0L7QstGL0LUg0LTQsNC90L3Ri9C1ICIgKyBuZXdUZXh0KTsKICAgIH0KfQoKCg==