how to write regex to Replace between multiple <br/> using C#.net?
by using below regex iam able to replace multiple <br> into single <br> using C#.net......
my problem is iam unable to replace if there are space between the <br> an the line-breaks...
for example:
<br /> <br />----how to write regex in this case there are space between the <br> an the line-breaks...
below regex works only if dont have space between breaks...
Regex.Replace(sampleText, @"[(<br( /|)>|<br( /|)>\n)]{2,}", "<br />");
how to write regex in this case there are space between the <br> an the line-breaks...