I have a String like this
string s = @"<Body>\r\n<Font face="Arial" size=10>\r\nwelcome to Csharp Regex\r\n</Font>\r\n</Body>";
I want to Replace the string "<Font face="Arial" size=10>\r\nwelcome to Csharp Regex\r\n</Font>" to " some text";I Use the following regex.
string s = Regex.Replace(s, @"<Font (.*?)>(.*)</Font>","some Text", RegexOptions.Multiline );
It is not working properly.
How can I get this using Regex?
Please help me whether it is possible or not.
(Moderator: Thread moved to the Regular Expression Forum and title tweaked for searching purposes)
View Complete Post