Here is a regex that I wrote some time ago to find image references. You
should be able to adapt it for use in finding anchors. It is somewhat
complex and it has been awhile since I have used it so it probably has some
bugs in it, but this should get you started.
<img.+?src\s*=\s*((["](?<xref>[^"]+)["][^>]*[>])|(['](?<xref>[^']+)['][^>]*[>])|((?<xref>[^\\s>]+)[^>]*[>]))
"Stijn Goris" <St********@discussions.microsoft.com> wrote in message
news:A8**********************************@microsof t.com...
Hi all,
I have a string containing html code and want to extract data between
action
en/or href. For example: href="www.google.com" then I want to detect the
href
string and get the data between "" (www.google.com).
How is this best done,
Regards
Stijn