------- You are receiving this mail because: -------
You are on the CC list for the bug.
http://bugs.exim.org/show_bug.cgi?id=767
Summary: ^ in else part of if-then-else regexp
Product: PCRE
Version: N/A
Platform: Other
OS/Version: Linux
Status: NEW
Severity: bug
Priority: medium
Component: Code
AssignedTo: ph10@???
ReportedBy: mgraham@???
CC: pcre-dev@???
Created an attachment (id=276)
--> (
http://bugs.exim.org/attachment.cgi?id=276)
Working PERL script
I am trying to get the following regexp to work:
(?(?=.*b)b|^)
This matches (in pcre) "adc" but not "abc". If I replace the ^ with something
else like a-z or $ then the regexp matches.
I have tried the pattern in perl v5.8.8 and it works.
I have attached a simple perl script that work the way I expect and some C
using PCRE that does not.
Cheers,
Mick
--
Configure bugmail:
http://bugs.exim.org/userprefs.cgi?tab=email