|
Boost : |
Subject: Re: [boost] Boost::Regex get URLs
From: John Maddock (boost.regex_at_[hidden])
Date: 2010-12-29 07:19:11
> How do i using Boost::Regex or standard C++ to get all the URLs from a
> given string....
> For example... i want to write a function that is....
>
> But this code doesnt work.... I am not sure how to use Boost::Regex to
> solve it....
There's actually an example for just this use case in the
regex_token_iterator docs (look towards the bottom):
http://www.boost.org/doc/libs/1_45_0/libs/regex/doc/html/boost_regex/ref/regex_token_iterator.html
Does this give you what you need?
John.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk