Boost logo

Boost Users :

From: Richard Dingwall (rdingwall_at_[hidden])
Date: 2007-04-08 01:57:27


On 4/8/07, Jeff <jeff_j_dunlap_at_[hidden]> wrote:
> I am new to regex and see how to match the URL string using the expression
> below:
>
> Expression: <a href[^<]*</a>
>
> To match: Art Page
>
> 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:
>
> Art Page
And More

>
> or
>
> Art

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_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net