Boost logo

Boost Users :

From: John Maddock (john_at_[hidden])
Date: 2005-04-21 07:04:53


> I am using the boost::regexp_iterator to list every match of a user
> configured regexp in the contents of a file. The file is read up into a
> single string and passed into the constructor of regexp_iterator. Take
> the example regexp of "a|\Ab" which means that every 'a' letter will be
> a match, plus the 'b' letter should be a match if it is the first one of
> the file. But the algorithm does not work like this! The letter 'b' is
> matched every time it follows an 'a'. Because '\A' does not mean the
> beginning of the original client-code-supplied buffer! After the first
> match, the '\A' only means the end of the last match.

Confirmed as a bug, it'll be fixed in cvs very shortly,

Thanks for the report,

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