
On 4/8/07, Jeff <jeff_j_dunlap@yahoo.com> wrote:
I am new to regex and see how to match the URL string using the expression below:
Expression: <a href[^<]*</a>
To match: <a href="http://art.com">Art Page</a>
Unfortunately, the URL strings vary and I am basically wanting to get everything beginning at '<a href=' and ending at '</a>'. Doing so, would allow me to get URL strings like the one above as well as:
<a href="http://art.com" target="_blank">Art Page<br>And More</a>
or
<a href="http://art.com/"><img src="http://art.com/flower.jpg" alt="Art"></a>
Have you tried a simpler pattern: <a .*href.*/a> (Infinite wild match before the href in case they decide to put the target attribute first or something). Richard
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users