RE: [boost] regex lib: regex_grep w/ match_posix broken?

7 Apr
2004
7 Apr
'04
12:24 p.m.
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)[0].second;
search_base = position = m_result[0].second;
John, 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. Ralph
7735
Age (days ago)
7735
Last active (days ago)
0 comments
1 participants
participants (1)
-
Benzinger, Ralph