From: Benzinger, Ralph (ralph.benzinger_at_[hidden])
Date: 2004-04-07 07:24:46
> > Is it just me or does regex_grep return overlapping matches
> > when using the match_posix flag? More specifically, grepping regex
> > "a+" over text "-aaa-" will find matches "aaa", "aa", and "a" at
> > offsets 1, 2, and 3, respectively.
> Yep, there's a fix going into cvs now, the patch is:
> Index: perl_matcher_common.hpp
> < search_base = position = (*m_presult).second;
> > search_base = position = m_result.second;
Thanks for the quick response. This works almost :-), but now the regex_grep misses consecutive matches: grepping regex "aaa" over "-aaaaaa-" will find only one match "aaa" at offset 1, but not the one at offset 4. Grepping over "-aaa-aaa-" works, though.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk