diff options
author | ph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069> | 2019-02-13 17:30:24 +0000 |
---|---|---|
committer | ph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069> | 2019-02-13 17:30:24 +0000 |
commit | 88ef1a460d137e42bad6f3b958998b379ba0fb38 (patch) | |
tree | 19990e84521ff5e74413f2c232286f1f4bbc656b /testdata | |
parent | c93653c87aa0bf7a24038961afb1189005a256a6 (diff) | |
download | pcre2-88ef1a460d137e42bad6f3b958998b379ba0fb38.tar.gz |
Compile \p{Any} the same as . in DOTALL mode, to benefit from auto-anchoring.
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@1072 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'testdata')
-rw-r--r-- | testdata/testinput5 | 4 | ||||
-rw-r--r-- | testdata/testoutput5 | 47 |
2 files changed, 32 insertions, 19 deletions
diff --git a/testdata/testinput5 b/testdata/testinput5 index 2c4e847..7c58145 100644 --- a/testdata/testinput5 +++ b/testdata/testinput5 @@ -2170,4 +2170,8 @@ /(?'X²ABC'...)/utf +# ------- + +/\p{Any}*xyz/I + # End of testinput5 diff --git a/testdata/testoutput5 b/testdata/testoutput5 index 23438dd..5d64d00 100644 --- a/testdata/testoutput5 +++ b/testdata/testoutput5 @@ -3294,27 +3294,27 @@ No match /\p{Any}+\p{Any} \p{Any}+\P{Any} \p{Any}+\p{L&} \p{Any}+\p{L} \p{Any}+\p{Lu} \p{Any}+\p{Han} \p{Any}+\p{Xan} \p{Any}+\p{Xsp} \p{Any}+\p{Xps} \p{Xwd}+\p{Any} \p{Any}+\p{Xuc}/Bx,ucp ------------------------------------------------------------------ Bra - prop Any + - prop Any - prop Any + + AllAny+ + AllAny + AllAny+ notprop Any - prop Any + + AllAny+ prop L& - prop Any + + AllAny+ prop L - prop Any + + AllAny+ prop Lu - prop Any + + AllAny+ prop Han - prop Any + + AllAny+ prop Xan - prop Any + + AllAny+ prop Xsp - prop Any + + AllAny+ prop Xps prop Xwd + - prop Any - prop Any + + AllAny + AllAny+ prop Xuc Ket End @@ -3324,7 +3324,7 @@ No match ------------------------------------------------------------------ Bra prop L& + - prop Any + AllAny prop L& + prop L& notprop L& ++ @@ -3355,7 +3355,7 @@ No match ------------------------------------------------------------------ Bra prop N + - prop Any + AllAny prop N + prop L& prop N ++ @@ -3386,7 +3386,7 @@ No match ------------------------------------------------------------------ Bra prop Lu + - prop Any + AllAny prop Lu + prop L& prop Lu + @@ -3448,7 +3448,7 @@ No match ------------------------------------------------------------------ Bra prop Xan + - prop Any + AllAny prop Xan + prop L& notprop Xan ++ @@ -3479,7 +3479,7 @@ No match ------------------------------------------------------------------ Bra prop Xsp + - prop Any + AllAny prop Xsp ++ prop L& prop Xsp ++ @@ -3508,7 +3508,7 @@ No match ------------------------------------------------------------------ Bra prop Xwd + - prop Any + AllAny prop Xwd + prop L& prop Xwd + @@ -3537,7 +3537,7 @@ No match ------------------------------------------------------------------ Bra prop Xuc + - prop Any + AllAny prop Xuc + prop L& prop Xuc + @@ -4924,4 +4924,13 @@ Failed: error 162 at offset 3: subpattern name expected /(?'X²ABC'...)/utf Failed: error 142 at offset 4: syntax error in subpattern name (missing terminator?) +# ------- + +/\p{Any}*xyz/I +Capture group count = 0 +Compile options: <none> +Overall options: anchored +Last code unit = 'z' +Subject length lower bound = 3 + # End of testinput5 |