
22 Apr
2004
22 Apr
'04
9:34 a.m.
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