R
Roger
I'm having a little trouble using the Regex.Replace method. I am
trying to perform a search and replace based on string pattern. I've
been successful in replacing string from it's starting position to the
end of the string value, however, I want to better define an ending
position. Below follows the code I'm using:
string a = "Hello, World, How are you?";
textBox1.Text = Regex.Replace(a, "W.*", "Mickey");
trying to perform a search and replace based on string pattern. I've
been successful in replacing string from it's starting position to the
end of the string value, however, I want to better define an ending
position. Below follows the code I'm using:
string a = "Hello, World, How are you?";
textBox1.Text = Regex.Replace(a, "W.*", "Mickey");