So essentially, I do not want to strip any opening P tag with any attributes and I don't want to strip anything in the string. and closing too...
Test case/
Code
style='color: green;'>What a fine day it isDesired Result/
Code
p ******Can BE ANYTHING*****>What a fine day it isp>Code
Regex for this...we have to keep all attributeCode
Code
p style='color: green;'>What a fine day it isp>

Khargesh RajputRank #616 · 3.9K reputationPosted Apr 19, 2015, 9:36 PM EDT
on any string
string strtest="
What a fine day it is
"Regex.Replace(strtest, "
", "");
", "");Regex.Replace(strtest, "