How can I write a regular expression to replace links with no link text like this:
<a href="http://www.somesite.com"></a>
with
<a href="http://www.somesite.com">http://www.somesite.com</a>
?
This is what I was trying to do to capture the matches, and it isn't catching any. What am I doing wrong?
string pattern = "<a\\s+href\\s*=\\s*\"(?<href>.*)\">\\s*</a>";