how to remove multiple tags like this by single tag using c# ???
regex
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VulpesRank #55 · 29.2K reputationPosted Feb 1, 2015, 5:53 AM EST
html = Regex.Replace(html, @"((\r?\n)*){2,}", "\r\n");
Posted Feb 4, 2015, 8:18 PM EST