diff options
author | ph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069> | 2019-09-04 18:14:54 +0000 |
---|---|---|
committer | ph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069> | 2019-09-04 18:14:54 +0000 |
commit | d291ead6117132882f9f34207818b87dd64de66f (patch) | |
tree | 8a8453983730199fb9655aa015f28554a35da5de /testdata | |
parent | 57d867b34f1dceb380fb4b5a54cc7744ff4968e7 (diff) | |
download | pcre2-d291ead6117132882f9f34207818b87dd64de66f.tar.gz |
Back off failed attempt to handle nested lookbehinds for estimating how much of
a partial match to retain for multi-segment matching. Document the current
difficulty if the whole first segment cannot be retained.
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@1163 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'testdata')
-rw-r--r-- | testdata/testoutput15 | 8 | ||||
-rw-r--r-- | testdata/testoutput2 | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/testdata/testoutput15 b/testdata/testoutput15 index d854412..9154e5f 100644 --- a/testdata/testoutput15 +++ b/testdata/testoutput15 @@ -304,7 +304,7 @@ Partial match, mark=xx: 123a /(?<=(?<=a)b)c.*/I Capture group count = 0 -Max lookbehind = 2 +Max lookbehind = 1 First code unit = 'c' Subject length lower bound = 1 abc\=ph @@ -337,7 +337,7 @@ Partial match: abcd /(?<=(?<=(?<=a)b)c)./I Capture group count = 0 -Max lookbehind = 3 +Max lookbehind = 1 Subject length lower bound = 1 123abcXYZ 0: abcX @@ -354,7 +354,7 @@ Subject length lower bound = 1 /(?<=ab((?<=...)cd))./I Capture group count = 1 -Max lookbehind = 5 +Max lookbehind = 4 Subject length lower bound = 1 ZabcdX 0: ZabcdX @@ -363,7 +363,7 @@ Subject length lower bound = 1 /(?<=((?<=(?<=ab).))(?1)(?1))./I Capture group count = 1 -Max lookbehind = 3 +Max lookbehind = 2 Subject length lower bound = 1 abxZ 0: abxZ diff --git a/testdata/testoutput2 b/testdata/testoutput2 index 2c69e54..2fb5be8 100644 --- a/testdata/testoutput2 +++ b/testdata/testoutput2 @@ -17036,7 +17036,7 @@ Subject length lower bound = 1 /(?<=(?<=a)b)c.*/I Capture group count = 0 -Max lookbehind = 2 +Max lookbehind = 1 First code unit = 'c' Subject length lower bound = 1 abc\=ph @@ -17064,7 +17064,7 @@ Subject length lower bound = 0 /(?<=a(?<=a|ba)c)/I Capture group count = 0 -Max lookbehind = 3 +Max lookbehind = 2 May match empty string Subject length lower bound = 0 @@ -17076,7 +17076,7 @@ Subject length lower bound = 0 /(?<=(?<=a)b)(?<!abcd)(?<=(?<=a)bcde)/I Capture group count = 0 -Max lookbehind = 5 +Max lookbehind = 4 May match empty string Subject length lower bound = 0 |