Name: Eugene Rosenfeld
Date: 12/30/2009 9:27:46 PM
Thanks for the regex. Saved me a lot of time. I did find one issue: it was only detecting anchor tags where the href attribute was the last attribute in the anchor tag. So, tags like the following would get missed:
<A href="http://thingsthatshouldbeeasy.blogspot.com/2009/08/anycpu-x86-x64-whats-difference.html" target="_blank">differences between AnyCPU, x86, and x64 compiler options</A>
because of the (in this case) the target attribute after the href attribute.
All it took was a slight addition to your regex: add [^>]+ between the end of the href group and the closing of the anchor tag > .
Here's the full new expression: