You can use this code to Replace String with Regular Expression
string x = “<div width=’100px’></div>”;
x = Regex.Replace(x, “width='[a-zA-Z0-9]*'”, “width=’300px'”);
Console.WriteLine(x);
Console.Read();
You can use this code to Replace String with Regular Expression
string x = “<div width=’100px’></div>”;
x = Regex.Replace(x, “width='[a-zA-Z0-9]*'”, “width=’300px'”);
Console.WriteLine(x);
Console.Read();