[pcre-dev] [Bug 682] Add REG_STARTEND support to PCRE

Top Page
Delete this message
Author: Philip Hazel
Date:  
To: pcre-dev
Subject: [pcre-dev] [Bug 682] Add REG_STARTEND support to PCRE
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=682

Philip Hazel <ph10@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED





--- Comment #2 from Philip Hazel <ph10@???> 2008-04-05 17:14:16 ---
I have applied and committed this patch, with one modification. Instead of

rc = pcre_exec((const pcre *)preg->re_pcre, NULL, string, (eo-so),
so, options, ovector, nmatch * 3);

I have used

rc = pcre_exec((const pcre *)preg->re_pcre, NULL, string + so, (eo-so),
0, options, ovector, nmatch * 3);

because the semantics are different, and the latter does what the OS X man page
says, namely "REG_STARTEND affects only the location of the string, not how it
is matched." Your version would allow lookbehinds before the starting point.


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email