new upstream release (3.3.0); modify package compatibility for Stretch
[ossec-hids.git] / src / external / pcre2-10.32 / testdata / testinput18
1 # This set of tests is run only with the 8-bit library. It tests the POSIX
2 # interface, which is supported only with the 8-bit library. This test should
3 # not be run with JIT (which is not available for the POSIX interface).
4     
5 #forbid_utf
6 #pattern posix
7
8 # Test some invalid options
9
10 /abc/auto_callout
11
12 /abc/
13    abc\=find_limits
14
15 /abc/
16   abc\=partial_hard
17   
18 /a(())bc/parens_nest_limit=1
19
20 /abc/allow_surrogate_escapes,max_pattern_length=2
21
22 # Real tests
23
24 /abc/
25     abc
26
27 /^abc|def/
28     abcdef
29     abcdef\=notbol
30
31 /.*((abc)$|(def))/
32     defabc
33     defabc\=noteol
34
35 /the quick brown fox/
36     the quick brown fox
37 \= Expect no match
38     The Quick Brown Fox
39
40 /the quick brown fox/i
41     the quick brown fox
42     The Quick Brown Fox
43
44 /(*LF)abc.def/
45 \= Expect no match
46     abc\ndef
47
48 /(*LF)abc$/
49     abc
50     abc\n
51
52 /(abc)\2/
53
54 /(abc\1)/
55 \= Expect no match
56     abc
57
58 /a*(b+)(z)(z)/
59     aaaabbbbzzzz
60     aaaabbbbzzzz\=ovector=0
61     aaaabbbbzzzz\=ovector=1
62     aaaabbbbzzzz\=ovector=2
63
64 /(*ANY)ab.cd/
65     ab-cd
66     ab=cd
67 \= Expect no match
68     ab\ncd
69
70 /ab.cd/s
71     ab-cd
72     ab=cd
73     ab\ncd
74
75 /a(b)c/posix_nosub
76     abc
77
78 /a(?P<name>b)c/posix_nosub
79     abc
80
81 /(a)\1/posix_nosub
82     zaay
83
84 /a?|b?/
85     abc
86 \= Expect no match
87     ddd\=notempty
88
89 /\w+A/
90    CDAAAAB
91
92 /\w+A/ungreedy
93    CDAAAAB
94    
95 /\Biss\B/I,aftertext
96     Mississippi
97
98 /abc/\
99
100 "(?(?C)"
101
102 "(?(?C))"
103
104 /abcd/substitute_extended
105
106 /\[A]{1000000}**/expand,regerror_buffsize=31
107
108 /\[A]{1000000}**/expand,regerror_buffsize=32
109
110 //posix_nosub
111     \=offset=70000
112
113 /(?=(a\K))/
114     a
115      
116 /^d(e)$/posix
117     acdef\=posix_startend=2:4
118     acde\=posix_startend=2 
119 \= Expect no match     
120     acdef
121     acdef\=posix_startend=2 
122
123 /^a\x{00}b$/posix
124     a\x{00}b\=posix_startend=0:3
125
126 /"A" 00 "B"/hex
127     A\x{00}B\=posix_startend=0:3
128     
129 /ABC/use_length 
130     ABC
131
132 /a\b(c/literal,posix
133     a\\b(c
134
135 /a\b(c/literal,posix,dotall
136
137 /((a)(b)?(c))/posix
138     123ace
139     123ace\=posix_startend=2:6
140
141 # End of testdata/testinput18