1 |
/(a)b|/ |
/(a)b|/ |
2 |
|
|
|
/(a*)*/ |
|
|
|
|
|
/(abc|)+/ |
|
|
|
|
3 |
/abc/ |
/abc/ |
4 |
abc |
abc |
5 |
defabc |
defabc |
6 |
\Aabc |
\Aabc |
|
\IABC |
|
7 |
*** Failers |
*** Failers |
8 |
\Adefabc |
\Adefabc |
9 |
ABC |
ABC |
25 |
|
|
26 |
/^abc$/ |
/^abc$/ |
27 |
abc |
abc |
|
\Mdef\nabc |
|
28 |
*** Failers |
*** Failers |
29 |
def\nabc |
def\nabc |
30 |
|
|
32 |
|
|
33 |
/ab\gdef/X |
/ab\gdef/X |
34 |
|
|
35 |
|
/(?X)ab\gdef/X |
36 |
|
|
37 |
/x{5,4}/ |
/x{5,4}/ |
38 |
|
|
39 |
/z{65536}/ |
/z{65536}/ |
70 |
this sentence eventually mentions a CAT cat |
this sentence eventually mentions a CAT cat |
71 |
this sentences rambles on and on for a while to elephant ElePhant |
this sentences rambles on and on for a while to elephant ElePhant |
72 |
|
|
|
/cat|dog|elephant/IS |
|
|
this sentence eventually mentions a CAT cat |
|
|
this sentences rambles on and on for a while to elephant ElePhant |
|
|
|
|
|
/cat|dog|elephant/IS |
|
|
\Ithis sentence eventually mentions a CAT cat |
|
|
\Ithis sentences rambles on and on for a while to elephant ElePhant |
|
|
|
|
73 |
/a|[bcd]/S |
/a|[bcd]/S |
74 |
|
|
75 |
/(a|[^\dZ])/S |
/(a|[^\dZ])/S |
83 |
/(a)(b)(c)\2/ |
/(a)(b)(c)\2/ |
84 |
abcb |
abcb |
85 |
\O0abcb |
\O0abcb |
86 |
\O2abcb |
\O3abcb |
|
\O4abcb |
|
87 |
\O6abcb |
\O6abcb |
88 |
\O8abcb |
\O9abcb |
89 |
|
\O12abcb |
90 |
|
|
91 |
/(a)bc|(a)(b)\2/ |
/(a)bc|(a)(b)\2/ |
92 |
abc |
abc |
93 |
\O0abc |
\O0abc |
94 |
\O2abc |
\O3abc |
95 |
\O4abc |
\O6abc |
96 |
aba |
aba |
97 |
\O0aba |
\O0aba |
98 |
\O2aba |
\O3aba |
|
\O4aba |
|
99 |
\O6aba |
\O6aba |
100 |
\O8aba |
\O9aba |
101 |
|
\O12aba |
|
/^a.b/ |
|
|
\Sa\nb |
|
102 |
|
|
103 |
/abc$/E |
/abc$/E |
104 |
abc |
abc |
106 |
abc\n |
abc\n |
107 |
abc\ndef |
abc\ndef |
108 |
|
|
|
/abc$/ |
|
|
*** Failers |
|
|
\Eabc\n |
|
|
\Eabc\ndef |
|
|
|
|
|
/abc$/m |
|
|
\Eabc\n |
|
|
\Eabc\ndef |
|
|
|
|
109 |
/(a)(b)(c)(d)(e)\6/ |
/(a)(b)(c)(d)(e)\6/ |
110 |
|
|
111 |
/the quick brown fox/ |
/the quick brown fox/ |
119 |
|
|
120 |
/ab(?z)cd/ |
/ab(?z)cd/ |
121 |
|
|
|
".*/\Xfoo"X |
|
|
/this/is/a/very/long/line/in/deed/with/very/many/slashes/in/it/you/see/ |
|
|
|
|
|
".*/\Xfoo"X |
|
|
/this/is/a/very/long/line/in/deed/with/very/many/slashes/in/and/foo |
|
|
|
|
|
/(\.\d\d[1-9]?)\d+/ |
|
|
1.230003938 |
|
|
1.875000282 |
|
|
1.235 |
|
|
|
|
|
/(\.\d\d[1-9]?)\X\d+/X |
|
|
1.230003938 |
|
|
1.875000282 |
|
|
*** Failers |
|
|
1.235 |
|
|
|
|
|
/(\.\d\d((?=0)|\d(?=\d)))/ |
|
|
1.230003938 |
|
|
1.875000282 |
|
|
*** Failers |
|
|
1.235 |
|
|
|
|
|
/^(\w+\X|\s+\X)*$/X |
|
|
now is the time for all good men to come to the aid of the party |
|
|
*** Failers |
|
|
this is not a line with only words and spaces! |
|
|
|
|
122 |
/^abc|def/ |
/^abc|def/ |
123 |
abcdef |
abcdef |
124 |
abcdef\B |
abcdef\B |
163 |
/(abc\1)/P |
/(abc\1)/P |
164 |
abc |
abc |
165 |
|
|
166 |
"(?>.*/)foo"X |
/)/ |
|
/this/is/a/very/long/line/in/deed/with/very/many/slashes/in/it/you/see/ |
|
167 |
|
|
168 |
"(?>.*/)foo"X |
/a[]b/ |
|
/this/is/a/very/long/line/in/deed/with/very/many/slashes/in/and/foo |
|
169 |
|
|
170 |
/(?>(\.\d\d[1-9]?))\d+/X |
/[^aeiou ]{3,}/ |
171 |
1.230003938 |
co-processors, and for |
172 |
1.875000282 |
|
173 |
*** Failers |
/<.*>/ |
174 |
1.235 |
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 |
/^((?>\w+)|(?>\s+))*$/X |
/<.*?>/U |
186 |
now is the time for all good men to come to the aid of the party |
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 |
*** Failers |
198 |
this is not a line with only words and spaces! |
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 |
/(\d+)(\w)/X |
/\Aabc/m |
262 |
12345a |
|
263 |
12345+ |
/^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 |
/((?>\d+))(\w)/X |
/(?<=ab(?<=c+)d)ef/ |
285 |
12345a |
|
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 |
*** Failers |
316 |
12345+ |
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 |
/([a]*)*/ |
/(?<%)b/ |
380 |
|
|
381 |
/([ab]*)*/ |
/a(?{)b/ |
382 |
|
|
383 |
/([^a]*)*/ |
/a(?{{})b/ |
384 |
|
|
385 |
/([^ab]*)*/ |
/a(?{}})b/ |
386 |
|
|
387 |
/([a]*?)*/ |
/a(?{"{"})b/ |
388 |
|
|
389 |
/([ab]*?)*/ |
/a(?{"{"}})b/ |
390 |
|
|
391 |
/([^a]*?)*/ |
/(?(1?)a|b)/ |
392 |
|
|
393 |
/([^ab]*?)*/ |
/(?(1)a|b|c)/ |
394 |
|
|
395 |
/(?>a*)*/X |
/[a[:xyz:/ |
396 |
|
|
397 |
/((?>a*))*/X |
/(?<=x+)y/ |
398 |
|
|
399 |
/((?>a*?))*/X |
/a{37,17}/ |
400 |
|
|
401 |
/ End of test input / |
/ End of test input / |