Boost logo

Boost Users :

From: John Maddock (john_at_[hidden])
Date: 2007-08-17 11:52:55


izua wrote:
> Hi everyone!
> I'm Richard from romania, and I'm pretty new to boost. I started
> using it because I need regex functionalities.
>
> Is there a regex_search functionality that will show me all found
> entries for the given regular expression? Something like
> preg_match_all in PHP?
> For example, if i have a regex ([0-9]+?[\W]+?) and the search string
> "abcd123.ef56[tab]essn" it would return me 2 arrays of arrays: first
> with an array 123 and ., second with 56 and tab.

You can use regex_iterator to iterate through each of the matches.

John.


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