String sample = "LoremIpsum.Net is.";
String re = @"]+>(.*?)<\/a>";sample =Regex.Replace(sample, re, "$1"));String sample = "LoremIpsum.Net is.";
String re = @"]+>(.*?)<\/a>";sample =Regex.Replace(sample, re, "$1"));Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Blocked AccountPosted May 29, 2012, 11:23 PM
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