/[pcre]/code/trunk/testinput2
ViewVC logotype

Contents of /code/trunk/testinput2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 23 - (show annotations) (download)
Sat Feb 24 21:38:41 2007 UTC (7 years, 8 months ago) by nigel
File size: 4022 byte(s)
Load pcre-2.00 into code/trunk.

1 /(a)b|/
2
3 /abc/
4 abc
5 defabc
6 \Aabc
7 *** Failers
8 \Adefabc
9 ABC
10
11 /^abc/
12 abc
13 \Aabc
14 *** Failers
15 defabc
16 \Adefabc
17
18 /a+bc/
19
20 /a*bc/
21
22 /a{3}bc/
23
24 /(abc|a+z)/
25
26 /^abc$/
27 abc
28 *** Failers
29 def\nabc
30
31 /abc\/
32
33 /ab\gdef/X
34
35 /(?X)ab\gdef/X
36
37 /x{5,4}/
38
39 /z{65536}/
40
41 /[abcd/
42
43 /[\B]/
44
45 /[a-\w]/
46
47 /[z-a]/
48
49 /^*/
50
51 /(abc/
52
53 /(?# abc/
54
55 /(?z)abc/
56
57 /.*b/
58
59 /.*?b/
60
61 /cat|dog|elephant/
62 this sentence eventually mentions a cat
63 this sentences rambles on and on for a while and then reaches elephant
64
65 /cat|dog|elephant/S
66 this sentence eventually mentions a cat
67 this sentences rambles on and on for a while and then reaches elephant
68
69 /cat|dog|elephant/iS
70 this sentence eventually mentions a CAT cat
71 this sentences rambles on and on for a while to elephant ElePhant
72
73 /a|[bcd]/S
74
75 /(a|[^\dZ])/S
76
77 /(a|b)*[\s]/S
78
79 /(ab\2)/
80
81 /{4,5}abc/
82
83 /(a)(b)(c)\2/
84 abcb
85 \O0abcb
86 \O3abcb
87 \O6abcb
88 \O9abcb
89 \O12abcb
90
91 /(a)bc|(a)(b)\2/
92 abc
93 \O0abc
94 \O3abc
95 \O6abc
96 aba
97 \O0aba
98 \O3aba
99 \O6aba
100 \O9aba
101 \O12aba
102
103 /abc$/E
104 abc
105 *** Failers
106 abc\n
107 abc\ndef
108
109 /(a)(b)(c)(d)(e)\6/
110
111 /the quick brown fox/
112 the quick brown fox
113 this is a line with the quick brown fox
114
115 /the quick brown fox/A
116 the quick brown fox
117 *** Failers
118 this is a line with the quick brown fox
119
120 /ab(?z)cd/
121
122 /^abc|def/
123 abcdef
124 abcdef\B
125
126 /.*((abc)$|(def))/
127 defabc
128 \Zdefabc
129
130 /abc/P
131 abc
132 *** Failers
133
134 /^abc|def/P
135 abcdef
136 abcdef\B
137
138 /.*((abc)$|(def))/P
139 defabc
140 \Zdefabc
141
142 /the quick brown fox/P
143 the quick brown fox
144 *** Failers
145 The Quick Brown Fox
146
147 /the quick brown fox/Pi
148 the quick brown fox
149 The Quick Brown Fox
150
151 /abc.def/P
152 *** Failers
153 abc\ndef
154
155 /abc$/P
156 abc
157 abc\n
158
159 /abc\/P
160
161 /(abc)\2/P
162
163 /(abc\1)/P
164 abc
165
166 /)/
167
168 /a[]b/
169
170 /[^aeiou ]{3,}/
171 co-processors, and for
172
173 /<.*>/
174 abc<def>ghi<klm>nop
175
176 /<.*?>/
177 abc<def>ghi<klm>nop
178
179 /<.*>/U
180 abc<def>ghi<klm>nop
181
182 /<.*>(?U)/
183 abc<def>ghi<klm>nop
184
185 /<.*?>/U
186 abc<def>ghi<klm>nop
187
188 /={3,}/U
189 abc========def
190
191 /(?U)={3,}?/
192 abc========def
193
194 /(?<!bar|cattle)foo/
195 foo
196 catfoo
197 *** Failers
198 the barfoo
199 and cattlefoo
200
201 /(?<=a+)b/
202
203 /(?<=aaa|b{0,3})b/
204
205 /(?<!(foo)a\1)bar/
206
207 /(?i)abc/
208
209 /(a|(?m)a)/
210
211 /(?i)^1234/
212
213 /(^b|(?i)^d)/
214
215 /(?s).*/
216
217 /[abcd]/S
218
219 /(?i)[abcd]/S
220
221 /(?m)[xy]|(b|c)/S
222
223 /(^a|^b)/m
224
225 /(?i)(^a|^b)/m
226
227 /(a)(?(1)a|b|c)/
228
229 /(?(?=a)a|b|c)/
230
231 /(?(1a)/
232
233 /(?(?i))/
234
235 /(?(abc))/
236
237 /(?(?<ab))/
238
239 /((?s)blah)\s+\1/
240
241 /((?i)blah)\s+\1/
242
243 /((?i)b)/DS
244
245 /(a*b|(?i:c*(?-i)d))/S
246
247 /a$/
248 a
249 a\n
250 *** Failers
251 \Za
252 \Za\n
253
254 /a$/m
255 a
256 a\n
257 \Za\n
258 *** Failers
259 \Za
260
261 /\Aabc/m
262
263 /^abc/m
264
265 /^((a+)(?U)([ab]+)(?-U)([bc]+)(\w*))/
266 aaaaabbbbbcccccdef
267
268 /(?<=foo)[ab]/S
269
270 /(?<!foo)(alpha|omega)/S
271
272 /(?!alphabet)[ab]/S
273
274 /(?<=foo\n)^bar/m
275
276 /(?>^abc)/m
277 abc
278 def\nabc
279 *** Failers
280 defabc
281
282 /(?<=ab(c+)d)ef/
283
284 /(?<=ab(?<=c+)d)ef/
285
286 /(?<=ab(c|de)f)g/
287
288 /The next two are in testinput2 because they have variable length branches/
289
290 /(?<=bullock|donkey)-cart/
291 the bullock-cart
292 a donkey-cart race
293 *** Failers
294 cart
295 horse-and-cart
296
297 /(?<=ab(?i)x|y|z)/
298
299 /(?<=ab(?i)x(?-i)y|(?i)z|b)ZZ/
300 abxyZZ
301 abXyZZ
302 ZZZ
303 zZZ
304 bZZ
305 BZZ
306 *** Failers
307 ZZ
308 abXYZZ
309 zzz
310 bzz
311
312 /(?<!(foo)a)bar/
313 bar
314 foobbar
315 *** Failers
316 fooabar
317
318 /This one is here because Perl 5.005_02 doesn't fail it/
319
320 /^(a)?(?(1)a|b)+$/
321 *** Failers
322 a
323
324 /This one is here because I think Perl 5.005_02 gets the setting of $1 wrong/
325
326 /^(a\1?){4}$/
327 aaaaaa
328
329 /These are syntax tests from Perl 5.005/
330
331 /a[b-a]/
332
333 /a[]b/
334
335 /a[/
336
337 /*a/
338
339 /(*)b/
340
341 /a\/
342
343 /abc)/
344
345 /(abc/
346
347 /a**/
348
349 /)(/
350
351 /\1/
352
353 /\2/
354
355 /(a)|\2/
356
357 /a[b-a]/i
358
359 /a[]b/i
360
361 /a[/i
362
363 /*a/i
364
365 /(*)b/i
366
367 /a\/i
368
369 /abc)/i
370
371 /(abc/i
372
373 /a**/i
374
375 /)(/i
376
377 /:(?:/
378
379 /(?<%)b/
380
381 /a(?{)b/
382
383 /a(?{{})b/
384
385 /a(?{}})b/
386
387 /a(?{"{"})b/
388
389 /a(?{"{"}})b/
390
391 /(?(1?)a|b)/
392
393 /(?(1)a|b|c)/
394
395 /[a[:xyz:/
396
397 /(?<=x+)y/
398
399 /a{37,17}/
400
401 / End of test input /

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12