| 51 |
slots in the offset vector, the offsets of the first-encountered partial |
slots in the offset vector, the offsets of the first-encountered partial |
| 52 |
match are set in them when PCRE_ERROR_PARTIAL is returned. |
match are set in them when PCRE_ERROR_PARTIAL is returned. |
| 53 |
|
|
| 54 |
10. Partial matching has been split into two forms: PCRE_PARTIAL_SOFT, which is |
10. Partial matching has been split into two forms: PCRE_PARTIAL_SOFT, which is |
| 55 |
synonymous with PCRE_PARTIAL, for backwards compatibility, and |
synonymous with PCRE_PARTIAL, for backwards compatibility, and |
| 56 |
PCRE_PARTIAL_HARD, which causes a longer partial match to supersede a |
PCRE_PARTIAL_HARD, which causes a partial match to supersede a full match, |
| 57 |
shorter full match, and may be more useful for multi-segment matching, |
and may be more useful for multi-segment matching, especially with |
| 58 |
especially with pcre_exec(). |
pcre_exec(). |
| 59 |
|
|
| 60 |
|
11. Partial matching with pcre_exec() is now more intuitive. A partial match |
| 61 |
|
used to be given if ever the end of the subject was reached; now it is |
| 62 |
|
given only if matching could not proceed because another character was |
| 63 |
|
needed. This makes a difference in some odd cases such as Z(*FAIL) with the |
| 64 |
|
string "Z", which now yields "no match" instead of "partial match". In the |
| 65 |
|
case of pcre_dfa_exec(), "no match" is given if every matching path for the |
| 66 |
|
final character ended with (*FAIL). |
| 67 |
|
|
| 68 |
|
12. Restarting a match using pcre_dfa_exec() after a partial match did not work |
| 69 |
|
if the pattern had a "must contain" character that was already found in the |
| 70 |
|
earlier partial match, unless partial matching was again requested. For |
| 71 |
|
example, with the pattern /dog.(body)?/, the "must contain" character is |
| 72 |
|
"g". If the first part-match was for the string "dog", restarting with |
| 73 |
|
"sbody" failed. |
| 74 |
|
|
| 75 |
|
|
| 76 |
Version 7.9 11-Apr-09 |
Version 7.9 11-Apr-09 |