summaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2013-11-08 16:37:21 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2013-11-08 16:37:21 +0000
commit92700d11a21ac14016162084d73fe476f7a828e4 (patch)
treefad4ac98f2dad82988ebe70b53b03bcf14a58515 /testdata
parent912f34d2b213b26d217473769a99fade935c989b (diff)
downloadpcre-92700d11a21ac14016162084d73fe476f7a828e4.tar.gz
Allow quantifiers on (?!) so as to be the same as other assertions.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1393 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'testdata')
-rw-r--r--testdata/testinput25
-rw-r--r--testdata/testoutput224
2 files changed, 26 insertions, 3 deletions
diff --git a/testdata/testinput2 b/testdata/testinput2
index c4b0d22..021c1e8 100644
--- a/testdata/testinput2
+++ b/testdata/testinput2
@@ -2520,7 +2520,10 @@ a random value. /Ix
** Failers
ab
-/a(?!)+b/
+/a(?!)b/BZ
+
+/(?!)?a/BZ
+ ab
/a(*FAIL)+b/
diff --git a/testdata/testoutput2 b/testdata/testoutput2
index 978430e..3069525 100644
--- a/testdata/testoutput2
+++ b/testdata/testoutput2
@@ -9281,8 +9281,28 @@ No match
ab
No match
-/a(?!)+b/
-Failed: nothing to repeat at offset 5
+/a(?!)b/BZ
+------------------------------------------------------------------
+ Bra
+ a
+ *FAIL
+ b
+ Ket
+ End
+------------------------------------------------------------------
+
+/(?!)?a/BZ
+------------------------------------------------------------------
+ Bra
+ Brazero
+ Assert not
+ Ket
+ a
+ Ket
+ End
+------------------------------------------------------------------
+ ab
+ 0: a
/a(*FAIL)+b/
Failed: nothing to repeat at offset 8