
5 Jul
2007
5 Jul
'07
3:20 p.m.
Chandan Nilange wrote:
Hello,
Can boost_regex handle overlapping matches.
e.g RegularExpression=> "12345678901\\d" String=> "12345678901123456789012"
Should generate following 2 Matches: 1st Matching Pattern:123456789011 Pattern starts at :0 Pattern ends at: 11 Pattern length:12 2nd Matching Pattern:123456789012 Pattern starts at :11 Pattern ends at: 22 Pattern length:12
I know, the documention talks only about non-overlapping matches. Just want to know if overlapping-matches support is likely to be added to boost_regex.
It's not explicitly handled, but it's more or less trivial to use regex_search to repeatedly search for overlapping matches. John.