summaryrefslogtreecommitdiff
path: root/testdata/testinput1
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2012-07-10 14:29:26 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2012-07-10 14:29:26 +0000
commitee0ff7cea715b6204487952910652efb923d8494 (patch)
tree9c5590c9811a6c310dacbfe8bee4433e02d5bbfe /testdata/testinput1
parentd440f2f364f237280005c06bf059c3b569dc44b7 (diff)
downloadpcre-ee0ff7cea715b6204487952910652efb923d8494.tar.gz
Fix patterns that incorrectly set "anchored" or "start of line" for .* inside
atomic parentheses or when *PRUNE or *SKIP is present. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@994 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'testdata/testinput1')
-rw-r--r--testdata/testinput141
1 files changed, 41 insertions, 0 deletions
diff --git a/testdata/testinput1 b/testdata/testinput1
index 1ec7689..e6d048a 100644
--- a/testdata/testinput1
+++ b/testdata/testinput1
@@ -5262,4 +5262,45 @@ name were given. ---/
/((?>a?)*)*c/
aac
+/(?>.*?a)(?<=ba)/
+ aba
+
+/(?:.*?a)(?<=ba)/
+ aba
+
+/.*?a(*PRUNE)b/
+ aab
+
+/.*?a(*PRUNE)b/s
+ aab
+
+/^a(*PRUNE)b/s
+ aab
+
+/.*?a(*SKIP)b/
+ aab
+
+/(?>.*?a)b/s
+ aab
+
+/(?>.*?a)b/
+ aab
+
+/(?>^a)b/s
+ aab
+
+/(?>.*?)(?<=(abcd)|(wxyz))/
+ alphabetabcd
+ endingwxyz
+
+/(?>.*)(?<=(abcd)|(wxyz))/
+ alphabetabcd
+ endingwxyz
+
+"(?>.*)foo"
+ abcdfooxyz
+
+"(?>.*?)foo"
+ abcdfooxyz
+
/-- End of testinput1 --/