pcre2/testdata/testinput18

110 lines
1.4 KiB
Plaintext
Raw Normal View History

2014-10-06 19:28:42 +02:00
# This set of tests is run only with the 8-bit library. It tests the POSIX
# interface, which is supported only with the 8-bit library. This test should
# not be run with JIT (which is not available for the POSIX interface).
2014-10-06 19:28:42 +02:00
#forbid_utf
2014-10-06 19:28:42 +02:00
#pattern posix
# Test invalid options
2014-10-06 19:28:42 +02:00
/abc/auto_callout
2014-10-06 19:28:42 +02:00
/abc/
abc\=find_limits
/abc/
abc\=partial_hard
# Real tests
/abc/
abc
/^abc|def/
abcdef
abcdef\=notbol
/.*((abc)$|(def))/
defabc
defabc\=noteol
/the quick brown fox/
the quick brown fox
\= Expect no match
The Quick Brown Fox
/the quick brown fox/i
the quick brown fox
The Quick Brown Fox
/(*LF)abc.def/
\= Expect no match
abc\ndef
/(*LF)abc$/
abc
abc\n
/(abc)\2/
/(abc\1)/
\= Expect no match
abc
/a*(b+)(z)(z)/
aaaabbbbzzzz
aaaabbbbzzzz\=ovector=0
aaaabbbbzzzz\=ovector=1
aaaabbbbzzzz\=ovector=2
/(*ANY)ab.cd/
ab-cd
ab=cd
\= Expect no match
ab\ncd
/ab.cd/s
ab-cd
ab=cd
ab\ncd
/a(b)c/posix_nosub
abc
/a(?P<name>b)c/posix_nosub
abc
/(a)\1/posix_nosub
zaay
/a?|b?/
abc
\= Expect no match
ddd\=notempty
/\w+A/
CDAAAAB
/\w+A/ungreedy
CDAAAAB
/\Biss\B/I,aftertext
Mississippi
/abc/\
"(?(?C)"
"(?(?C))"
2015-10-07 19:32:48 +02:00
/abcd/substitute_extended
2015-10-30 18:17:40 +01:00
/\[A]{1000000}**/expand,regerror_buffsize=31
/\[A]{1000000}**/expand,regerror_buffsize=32
//posix_nosub
\=offset=70000
# End of testdata/testinput18