regex lib: bug with sets and back ref

14 Apr
2004
14 Apr
'04
12:56 p.m.
Hello, The following behavior seems to be a bug: * regex '([a-c]+)\1' finds 'abcabc' at offset 0 in text 'abcabc' * regex '([abc]+)\1' finds 'bcbc' at offset 1 in text 'abcbc' * regex '([a-c]+)\1' finds nothing in text 'abcbc' ??? Can anybody confirm this? Tried both POSIX and Perl syntax/match mode. Ralph

15 Apr
15 Apr
12:55 p.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. John.
7731
Age (days ago)
7732
Last active (days ago)
1 comments
2 participants
participants (2)
-
Benzinger, Ralph
-
John Maddock