Boost logo

Boost Users :

From: Armel Asselin (asselin.armel_at_[hidden])
Date: 2007-05-21 03:07:05


Hello all,

i'm trying to search a regular expression backward. I use iterators.
I suspect that i should use something like that, but i could not find
documentation confirming:

while (pos != start)
{
    if (boost::regex_search (start, end, results, regex,
                        ::regex_constants::match_continuous))
        // it's ok;
    --start;
}

Is it the right idea? (using macth_continuous?)

Regards
Armel


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