[pcre-dev] [Bug 1368] Easier to use function for multi-segme…

Top Page
Delete this message
Author: Sébastien Wilmet
Date:  
To: pcre-dev
Subject: [pcre-dev] [Bug 1368] Easier to use function for multi-segment matching
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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




--- Comment #2 from Sébastien Wilmet <swilmet@???> 2013-07-14 20:31:07 ---
OK, so the safer way is to use pcre_exec() with PCRE_PARTIAL_HARD, with a
larger segment if a partial match is returned, until a complete match is found,
or there is no match.

However we can see in the documentation (in the "ISSUES WITH MULTI-SEGMENT
MATCHING" section):

> 4. Matching a subject string that is split into multiple segments may
> not always produce exactly the same result as matching over one single
> long string, especially when PCRE_PARTIAL_SOFT is used.


Is it also true for pcre_exec() with PCRE_PARTIAL_HARD?


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