using System;
using System.Text.RegularExpressions;
public class Test
{
public static void Main()
{
string input = "doin' some replacement";
string pattern = @"\bdoin'\b";
string replace = "doing";
string result = Regex.Replace(input, pattern, replace);
Console.WriteLine(result);
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uVGV4dC5SZWd1bGFyRXhwcmVzc2lvbnM7CnB1YmxpYyBjbGFzcyBUZXN0CnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBNYWluKCkKCXsKCXN0cmluZyBpbnB1dCA9ICJkb2luJyBzb21lIHJlcGxhY2VtZW50IjsKCXN0cmluZyBwYXR0ZXJuID0gQCJcYmRvaW4nXGIiOwoJc3RyaW5nIHJlcGxhY2UgPSAiZG9pbmciOwoJc3RyaW5nIHJlc3VsdCA9IFJlZ2V4LlJlcGxhY2UoaW5wdXQsIHBhdHRlcm4sIHJlcGxhY2UpOwoJQ29uc29sZS5Xcml0ZUxpbmUocmVzdWx0KTsKCX0KfQ==