|
Boost : |
From: Benzinger, Ralph (ralph.benzinger_at_[hidden])
Date: 2004-04-22 04:34:52
> > The following behavior seems to be a bug:
> >
> > * regex '([a-c]+)\1' finds 'abcabc' at offset 0 in text 'abcabc'
>
> That looks correct.
>
> > * regex '([abc]+)\1' finds 'bcbc' at offset 1 in text 'abcbc'
>
> That looks correct.
>
> > * regex '([a-c]+)\1' finds nothing in text 'abcbc' ???
>
> It should 'bcbc' if you're calling regex_search and nothing if you're
> calling regex_match.
Sorry if I wasn't clear enough. All tests use regex_grep. In the last example, however, regex_grep _doesn't_ find "bcbc", even though it should. I would assume it's an issue with regex_compile, as the only difference between (2) and (3) is the way the set is defined.
Ralph
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk