C#
String sample = "LoremIpsum.Net is.";
String re = @"]+>(.*?)";C#
sample =Regex.Replace(sample, re, "$1"));String sample = "LoremIpsum.Net is.";
String re = @"]+>(.*?)";sample =Regex.Replace(sample, re, "$1"));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
Blocked AccountRank #403 · 6.2K reputationPosted May 29, 2012, 7:23 PM EDT
If you want to remove anchor tag, then change little bit your regular expression like that
string sample = "LoremIpsum.Net is.";
string re = @"]+>(.*?)<\/a>(.*?)";
//sample = Regex.Replace(sample, re, "$1");
sample = Regex.Replace(sample, re,"$2");
Thanks