The post I refer to contains an answer to remove all div tags from a string. When a string contains multiple div tags I only want to remove div tags from that string where div attribute 'width' is set to (for example) 100px
How can I adjust below regex to meet my requirement?
string divTag = "div";
objNews.Article = Server.HtmlEncode(Regex.Replace(ckedi.Content.Trim().ToString(), "(</?)" + divTag + @"((?:\s+.*?)?>)", ""));
Thank you
Frederik