Simple match and replace
suggest changepublic string Check()
{
string input = "Hello World!";
string pattern = @"W.rld";
// Hello Stack Overflow!
return Regex.Replace(input, pattern, "Stack Overflow");
}
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents