diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2017-12-12 15:07:18 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2017-12-12 15:07:18 +0000 |
commit | 774be03b760cb4b56abf686f6dc56ac4de07fa67 (patch) | |
tree | ad6c84c42f028bd46a9fc7e8d0d7b335f61b45c3 /testdata | |
parent | faeb061701c6875684eccc463b1a325e6c9a31af (diff) | |
download | pcre-774be03b760cb4b56abf686f6dc56ac4de07fa67.tar.gz |
Fix wrong first character when a backreference with a zero repeat is first
(apart from assersions) in a pattern.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1719 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'testdata')
-rw-r--r-- | testdata/testinput2 | 8 | ||||
-rw-r--r-- | testdata/testoutput2 | 16 |
2 files changed, 24 insertions, 0 deletions
diff --git a/testdata/testinput2 b/testdata/testinput2 index 08c6f39..8ba4dc4 100644 --- a/testdata/testinput2 +++ b/testdata/testinput2 @@ -4249,4 +4249,12 @@ backtracking verbs. --/ /(?=.*[A-Z])/I +"(?<=(a))\1?b" + ab + aaab + +"(?=(a))\1?b" + ab + aaab + /-- End of testinput2 --/ diff --git a/testdata/testoutput2 b/testdata/testoutput2 index 811bbef..61ed8d9 100644 --- a/testdata/testoutput2 +++ b/testdata/testoutput2 @@ -14705,4 +14705,20 @@ No options No first char No need char +"(?<=(a))\1?b" + ab + 0: b + 1: a + aaab + 0: ab + 1: a + +"(?=(a))\1?b" + ab + 0: ab + 1: a + aaab + 0: ab + 1: a + /-- End of testinput2 --/ |