I have some html :-
<blockquote>This is a quote</blockquote>
<p>This is the main post</p>
I want to remove the blockquote and its contents . I've tried : -
string strippedPost = Regex.Replace(post, "<blockquote>(.*?)</blockquote>", "");
But not had any luck with it. Is there a problem with the regex?
update: also tried
string strippedPost = Regex.Replace(post, @"<blockquote>(.*?)<\/blockquote>", "");