[Solved] C# Remove Phone Number from String? [closed]


This should help:

var myRegex = new Regex(@"((\d){3}-1234567)|((\d){3}\-(\d){3}\-4567)|((\d){3}1234567)");
string newStringWithoutPhoneNumbers =  myRegex.Replace("oldStringWithPhoneNumbers", string.Empty);

1

solved C# Remove Phone Number from String? [closed]