mirror of
https://github.com/boostorg/regex.git
synced 2025-07-17 06:12:10 +02:00
Fix regex_iterator and regex_replace to do what grep/sed do for multiple repeats when matching in POSIX mode.
Fixes #589. [SVN r79339]
This commit is contained in:
@ -68,7 +68,7 @@ public:
|
||||
// flags |= match_prev_avail;
|
||||
BidirectionalIterator next_start = what[0].second;
|
||||
match_flag_type f(flags);
|
||||
if(!what.length())
|
||||
if(!what.length() || (f & regex_constants::match_posix))
|
||||
f |= regex_constants::match_not_initial_null;
|
||||
//if(base != next_start)
|
||||
// f |= regex_constants::match_not_bob;
|
||||
|
Reference in New Issue
Block a user