| mikezilla.com

Extracting HREF URLs from HTML using Regular Expressions

[ie, gecko]

This example shows how to parse a body of HTML and extract any URLs found in anchor link href= attributes. This function assumes URLs are encapsulated in double quotes e.g. href="URL", those that are not and have spaces in them will be truncated.

More explanation of this technique can be found in my complete article Processing HTML using Regular Expressions on www.notestips.com.