Boost logo

Boost Users :

Subject: [Boost-users] Xpressive continuing search from previous match
From: K. Noel Belcourt (kbelco_at_[hidden])
Date: 2010-01-07 19:01:36


Hi,

I have a search for a regular expression like this.

   sregex_iterator cur(buffer.begin(), buffer.end(), defined_re), end;
   for(; cur != end; ++cur) { ...

But what I really want to do is perform a new regex search starting
at the location in the buffer marking the end of the previous
search. Is there a way to get the buffer index from the previous
search so I can start the new search past the previous search?

I apologize if this is easy to do, I must have missed it with my
quick perusal through the documentation.

Thanks.

-- Noel Belcourt


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