Commit | Line | Data |
378cc40b |
1 | abc abc y $& abc |
301f462a |
2 | abc abc y $-[0] 0 |
3 | abc abc y $+[0] 3 |
378cc40b |
4 | abc xbc n - - |
5 | abc axc n - - |
6 | abc abx n - - |
7 | abc xabcy y $& abc |
301f462a |
8 | abc xabcy y $-[0] 1 |
9 | abc xabcy y $+[0] 4 |
378cc40b |
10 | abc ababc y $& abc |
301f462a |
11 | abc ababc y $-[0] 2 |
12 | abc ababc y $+[0] 5 |
378cc40b |
13 | ab*c abc y $& abc |
301f462a |
14 | ab*c abc y $-[0] 0 |
15 | ab*c abc y $+[0] 3 |
378cc40b |
16 | ab*bc abc y $& abc |
301f462a |
17 | ab*bc abc y $-[0] 0 |
18 | ab*bc abc y $+[0] 3 |
378cc40b |
19 | ab*bc abbc y $& abbc |
301f462a |
20 | ab*bc abbc y $-[0] 0 |
21 | ab*bc abbc y $+[0] 4 |
378cc40b |
22 | ab*bc abbbbc y $& abbbbc |
301f462a |
23 | ab*bc abbbbc y $-[0] 0 |
24 | ab*bc abbbbc y $+[0] 6 |
c277df42 |
25 | .{1} abbbbc y $& a |
301f462a |
26 | .{1} abbbbc y $-[0] 0 |
27 | .{1} abbbbc y $+[0] 1 |
c277df42 |
28 | .{3,4} abbbbc y $& abbb |
301f462a |
29 | .{3,4} abbbbc y $-[0] 0 |
30 | .{3,4} abbbbc y $+[0] 4 |
a687059c |
31 | ab{0,}bc abbbbc y $& abbbbc |
301f462a |
32 | ab{0,}bc abbbbc y $-[0] 0 |
33 | ab{0,}bc abbbbc y $+[0] 6 |
378cc40b |
34 | ab+bc abbc y $& abbc |
301f462a |
35 | ab+bc abbc y $-[0] 0 |
36 | ab+bc abbc y $+[0] 4 |
378cc40b |
37 | ab+bc abc n - - |
38 | ab+bc abq n - - |
a687059c |
39 | ab{1,}bc abq n - - |
378cc40b |
40 | ab+bc abbbbc y $& abbbbc |
301f462a |
41 | ab+bc abbbbc y $-[0] 0 |
42 | ab+bc abbbbc y $+[0] 6 |
a687059c |
43 | ab{1,}bc abbbbc y $& abbbbc |
301f462a |
44 | ab{1,}bc abbbbc y $-[0] 0 |
45 | ab{1,}bc abbbbc y $+[0] 6 |
a687059c |
46 | ab{1,3}bc abbbbc y $& abbbbc |
301f462a |
47 | ab{1,3}bc abbbbc y $-[0] 0 |
48 | ab{1,3}bc abbbbc y $+[0] 6 |
a687059c |
49 | ab{3,4}bc abbbbc y $& abbbbc |
301f462a |
50 | ab{3,4}bc abbbbc y $-[0] 0 |
51 | ab{3,4}bc abbbbc y $+[0] 6 |
a687059c |
52 | ab{4,5}bc abbbbc n - - |
378cc40b |
53 | ab?bc abbc y $& abbc |
54 | ab?bc abc y $& abc |
a687059c |
55 | ab{0,1}bc abc y $& abc |
378cc40b |
56 | ab?bc abbbbc n - - |
57 | ab?c abc y $& abc |
a687059c |
58 | ab{0,1}c abc y $& abc |
378cc40b |
59 | ^abc$ abc y $& abc |
60 | ^abc$ abcc n - - |
61 | ^abc abcc y $& abc |
62 | ^abc$ aabc n - - |
63 | abc$ aabc y $& abc |
c277df42 |
64 | abc$ aabcd n - - |
378cc40b |
65 | ^ abc y $& |
66 | $ abc y $& |
67 | a.c abc y $& abc |
68 | a.c axc y $& axc |
69 | a.*c axyzc y $& axyzc |
70 | a.*c axyzd n - - |
71 | a[bc]d abc n - - |
72 | a[bc]d abd y $& abd |
3b968408 |
73 | a[b]d abd y $& abd |
74 | [a][b][d] abd y $& abd |
75 | .[b]. abd y $& abd |
76 | .[b]. aBd n - - |
77 | (?i:.[b].) abd y $& abd |
378cc40b |
78 | a[b-d]e abd n - - |
79 | a[b-d]e ace y $& ace |
80 | a[b-d] aac y $& ac |
81 | a[-b] a- y $& a- |
82 | a[b-] a- y $& a- |
b2a156bd |
83 | a[b-a] - c - Invalid [] range \"b-a\" |
24b61696 |
84 | a[]b - c - Unmatched [ |
85 | a[ - c - Unmatched [ |
378cc40b |
86 | a] a] y $& a] |
87 | a[]]b a]b y $& a]b |
88 | a[^bc]d aed y $& aed |
89 | a[^bc]d abd n - - |
90 | a[^-b]c adc y $& adc |
91 | a[^-b]c a-c n - - |
92 | a[^]b]c a]c n - - |
93 | a[^]b]c adc y $& adc |
bbce6d69 |
94 | \ba\b a- y - - |
95 | \ba\b -a y - - |
96 | \ba\b -a- y - - |
97 | \by\b xy n - - |
98 | \by\b yz n - - |
99 | \by\b xyz n - - |
100 | \Ba\B a- n - - |
101 | \Ba\B -a n - - |
102 | \Ba\B -a- n - - |
103 | \By\b xy y - - |
301f462a |
104 | \By\b xy y $-[0] 1 |
105 | \By\b xy y $+[0] 2 |
106 | \By\b xy y - - |
bbce6d69 |
107 | \by\B yz y - - |
108 | \By\B xyz y - - |
109 | \w a y - - |
110 | \w - n - - |
111 | \W a n - - |
112 | \W - y - - |
113 | a\sb a b y - - |
114 | a\sb a-b n - - |
115 | a\Sb a b n - - |
116 | a\Sb a-b y - - |
117 | \d 1 y - - |
118 | \d - n - - |
119 | \D 1 n - - |
120 | \D - y - - |
121 | [\w] a y - - |
122 | [\w] - n - - |
123 | [\W] a n - - |
124 | [\W] - y - - |
125 | a[\s]b a b y - - |
126 | a[\s]b a-b n - - |
127 | a[\S]b a b n - - |
128 | a[\S]b a-b y - - |
129 | [\d] 1 y - - |
130 | [\d] - n - - |
131 | [\D] 1 n - - |
132 | [\D] - y - - |
378cc40b |
133 | ab|cd abc y $& ab |
134 | ab|cd abcd y $& ab |
135 | ()ef def y $&-$1 ef- |
301f462a |
136 | ()ef def y $-[0] 1 |
137 | ()ef def y $+[0] 3 |
138 | ()ef def y $-[1] 1 |
139 | ()ef def y $+[1] 1 |
24b61696 |
140 | *a - c - Quantifier follows nothing |
141 | (*)b - c - Quantifier follows nothing |
378cc40b |
142 | $b b n - - |
1b1626e4 |
143 | a\ - c - Search pattern not terminated |
378cc40b |
144 | a\(b a(b y $&-$1 a(b- |
145 | a\(*b ab y $& ab |
146 | a\(*b a((b y $& a((b |
b2a156bd |
147 | a\\b a\\b y $& a\\b |
24b61696 |
148 | abc) - c - Unmatched ) |
149 | (abc - c - Unmatched ( |
378cc40b |
150 | ((a)) abc y $&-$1-$2 a-a-a |
301f462a |
151 | ((a)) abc y $-[0]-$-[1]-$-[2] 0-0-0 |
152 | ((a)) abc y $+[0]-$+[1]-$+[2] 1-1-1 |
153 | ((a)) abc b @- 0 0 0 |
154 | ((a)) abc b @+ 1 1 1 |
378cc40b |
155 | (a)b(c) abc y $&-$1-$2 abc-a-c |
301f462a |
156 | (a)b(c) abc y $-[0]-$-[1]-$-[2] 0-0-2 |
157 | (a)b(c) abc y $+[0]-$+[1]-$+[2] 3-1-3 |
378cc40b |
158 | a+b+c aabbabc y $& abc |
a687059c |
159 | a{1,}b{1,}c aabbabc y $& abc |
24b61696 |
160 | a** - c - Nested quantifiers |
a0d0e21e |
161 | a.+?c abcabc y $& abc |
378cc40b |
162 | (a+|b)* ab y $&-$1 ab-b |
301f462a |
163 | (a+|b)* ab y $-[0] 0 |
164 | (a+|b)* ab y $+[0] 2 |
165 | (a+|b)* ab y $-[1] 1 |
166 | (a+|b)* ab y $+[1] 2 |
a687059c |
167 | (a+|b){0,} ab y $&-$1 ab-b |
378cc40b |
168 | (a+|b)+ ab y $&-$1 ab-b |
a687059c |
169 | (a+|b){1,} ab y $&-$1 ab-b |
378cc40b |
170 | (a+|b)? ab y $&-$1 a-a |
a687059c |
171 | (a+|b){0,1} ab y $&-$1 a-a |
24b61696 |
172 | )( - c - Unmatched ) |
378cc40b |
173 | [^ab]* cde y $& cde |
174 | abc n - - |
175 | a* y $& |
176 | ([abc])*d abbbcd y $&-$1 abbbcd-c |
177 | ([abc])*bcd abcd y $&-$1 abcd-a |
178 | a|b|c|d|e e y $& e |
179 | (a|b|c|d|e)f ef y $&-$1 ef-e |
301f462a |
180 | (a|b|c|d|e)f ef y $-[0] 0 |
181 | (a|b|c|d|e)f ef y $+[0] 2 |
182 | (a|b|c|d|e)f ef y $-[1] 0 |
183 | (a|b|c|d|e)f ef y $+[1] 1 |
378cc40b |
184 | abcd*efg abcdefg y $& abcdefg |
185 | ab* xabyabbbz y $& ab |
186 | ab* xayabbbz y $& a |
187 | (ab|cd)e abcde y $&-$1 cde-cd |
188 | [abhgefdc]ij hij y $& hij |
189 | ^(ab|cd)e abcde n x$1y xy |
190 | (abc|)ef abcdef y $&-$1 ef- |
191 | (a|b)c*d abcd y $&-$1 bcd-b |
192 | (ab|ab*)bc abc y $&-$1 abc-a |
193 | a([bc]*)c* abc y $&-$1 abc-bc |
194 | a([bc]*)(c*d) abcd y $&-$1-$2 abcd-bc-d |
301f462a |
195 | a([bc]*)(c*d) abcd y $-[0] 0 |
196 | a([bc]*)(c*d) abcd y $+[0] 4 |
197 | a([bc]*)(c*d) abcd y $-[1] 1 |
198 | a([bc]*)(c*d) abcd y $+[1] 3 |
199 | a([bc]*)(c*d) abcd y $-[2] 3 |
200 | a([bc]*)(c*d) abcd y $+[2] 4 |
378cc40b |
201 | a([bc]+)(c*d) abcd y $&-$1-$2 abcd-bc-d |
202 | a([bc]*)(c+d) abcd y $&-$1-$2 abcd-b-cd |
301f462a |
203 | a([bc]*)(c+d) abcd y $-[0] 0 |
204 | a([bc]*)(c+d) abcd y $+[0] 4 |
205 | a([bc]*)(c+d) abcd y $-[1] 1 |
206 | a([bc]*)(c+d) abcd y $+[1] 2 |
207 | a([bc]*)(c+d) abcd y $-[2] 2 |
208 | a([bc]*)(c+d) abcd y $+[2] 4 |
378cc40b |
209 | a[bcd]*dcdcde adcdcde y $& adcdcde |
210 | a[bcd]+dcdcde adcdcde n - - |
211 | (ab|a)b*c abc y $&-$1 abc-ab |
301f462a |
212 | (ab|a)b*c abc y $-[0] 0 |
213 | (ab|a)b*c abc y $+[0] 3 |
214 | (ab|a)b*c abc y $-[1] 0 |
215 | (ab|a)b*c abc y $+[1] 2 |
378cc40b |
216 | ((a)(b)c)(d) abcd y $1-$2-$3-$4 abc-a-b-d |
301f462a |
217 | ((a)(b)c)(d) abcd y $-[0] 0 |
218 | ((a)(b)c)(d) abcd y $+[0] 4 |
219 | ((a)(b)c)(d) abcd y $-[1] 0 |
220 | ((a)(b)c)(d) abcd y $+[1] 3 |
221 | ((a)(b)c)(d) abcd y $-[2] 0 |
222 | ((a)(b)c)(d) abcd y $+[2] 1 |
223 | ((a)(b)c)(d) abcd y $-[3] 1 |
224 | ((a)(b)c)(d) abcd y $+[3] 2 |
225 | ((a)(b)c)(d) abcd y $-[4] 3 |
226 | ((a)(b)c)(d) abcd y $+[4] 4 |
378cc40b |
227 | [a-zA-Z_][a-zA-Z0-9_]* alpha y $& alpha |
228 | ^a(bc+|b[eh])g|.h$ abh y $&-$1 bh- |
229 | (bc+d$|ef*g.|h?i(j|k)) effgz y $&-$1-$2 effgz-effgz- |
230 | (bc+d$|ef*g.|h?i(j|k)) ij y $&-$1-$2 ij-ij-j |
231 | (bc+d$|ef*g.|h?i(j|k)) effg n - - |
232 | (bc+d$|ef*g.|h?i(j|k)) bcdd n - - |
233 | (bc+d$|ef*g.|h?i(j|k)) reffgz y $&-$1-$2 effgz-effgz- |
fe14fcc3 |
234 | ((((((((((a)))))))))) a y $10 a |
301f462a |
235 | ((((((((((a)))))))))) a y $-[0] 0 |
236 | ((((((((((a)))))))))) a y $+[0] 1 |
237 | ((((((((((a)))))))))) a y $-[10] 0 |
238 | ((((((((((a)))))))))) a y $+[10] 1 |
fe14fcc3 |
239 | ((((((((((a))))))))))\10 aa y $& aa |
9d116dd7 |
240 | ((((((((((a))))))))))${bang} aa n - - |
241 | ((((((((((a))))))))))${bang} a! y $& a! |
378cc40b |
242 | (((((((((a))))))))) a y $& a |
243 | multiple words of text uh-uh n - - |
244 | multiple words multiple words, yeah y $& multiple words |
245 | (.*)c(.*) abcde y $&-$1-$2 abcde-ab-de |
246 | \((.*), (.*)\) (a, b) y ($2, $1) (b, a) |
247 | [k] ab n - - |
b2a156bd |
248 | abcd abcd y $&-\$&-\\$& abcd-\$&-\\abcd |
249 | a(bc)d abcd y $1-\$1-\\$1 bc-\$1-\\bc |
378cc40b |
250 | a[-]?c ac y $& ac |
251 | (abc)\1 abcabc y $1 abc |
252 | ([a-c]*)\1 abcabc y $1 abc |
9baa0206 |
253 | \1 - c - Reference to nonexistent group |
254 | \2 - c - Reference to nonexistent group |
ef64f398 |
255 | (a)|\1 a y - - |
256 | (a)|\1 x n - - |
9baa0206 |
257 | (a)|\2 - c - Reference to nonexistent group |
ef64f398 |
258 | (([a-c])b*?\2)* ababbbcbc y $&-$1-$2 ababb-bb-b |
259 | (([a-c])b*?\2){3} ababbbcbc y $&-$1-$2 ababbbcbc-cbc-c |
260 | ((\3|b)\2(a)x)+ aaxabxbaxbbx n - - |
261 | ((\3|b)\2(a)x)+ aaaxabaxbaaxbbax y $&-$1-$2-$3 bbax-bbax-b-a |
262 | ((\3|b)\2(a)){2,} bbaababbabaaaaabbaaaabba y $&-$1-$2-$3 bbaaaabba-bba-b-a |
301f462a |
263 | (a)|(b) b y $-[0] 0 |
264 | (a)|(b) b y $+[0] 1 |
265 | (a)|(b) b y x$-[1] x |
266 | (a)|(b) b y x$+[1] x |
267 | (a)|(b) b y $-[2] 0 |
268 | (a)|(b) b y $+[2] 1 |
1462b684 |
269 | 'abc'i ABC y $& ABC |
270 | 'abc'i XBC n - - |
271 | 'abc'i AXC n - - |
272 | 'abc'i ABX n - - |
273 | 'abc'i XABCY y $& ABC |
274 | 'abc'i ABABC y $& ABC |
275 | 'ab*c'i ABC y $& ABC |
276 | 'ab*bc'i ABC y $& ABC |
277 | 'ab*bc'i ABBC y $& ABBC |
a0d0e21e |
278 | 'ab*?bc'i ABBBBC y $& ABBBBC |
279 | 'ab{0,}?bc'i ABBBBC y $& ABBBBC |
280 | 'ab+?bc'i ABBC y $& ABBC |
1462b684 |
281 | 'ab+bc'i ABC n - - |
282 | 'ab+bc'i ABQ n - - |
283 | 'ab{1,}bc'i ABQ n - - |
284 | 'ab+bc'i ABBBBC y $& ABBBBC |
a0d0e21e |
285 | 'ab{1,}?bc'i ABBBBC y $& ABBBBC |
286 | 'ab{1,3}?bc'i ABBBBC y $& ABBBBC |
287 | 'ab{3,4}?bc'i ABBBBC y $& ABBBBC |
288 | 'ab{4,5}?bc'i ABBBBC n - - |
289 | 'ab??bc'i ABBC y $& ABBC |
290 | 'ab??bc'i ABC y $& ABC |
291 | 'ab{0,1}?bc'i ABC y $& ABC |
292 | 'ab??bc'i ABBBBC n - - |
293 | 'ab??c'i ABC y $& ABC |
294 | 'ab{0,1}?c'i ABC y $& ABC |
1462b684 |
295 | '^abc$'i ABC y $& ABC |
296 | '^abc$'i ABCC n - - |
297 | '^abc'i ABCC y $& ABC |
298 | '^abc$'i AABC n - - |
299 | 'abc$'i AABC y $& ABC |
300 | '^'i ABC y $& |
301 | '$'i ABC y $& |
302 | 'a.c'i ABC y $& ABC |
303 | 'a.c'i AXC y $& AXC |
a0d0e21e |
304 | 'a.*?c'i AXYZC y $& AXYZC |
1462b684 |
305 | 'a.*c'i AXYZD n - - |
306 | 'a[bc]d'i ABC n - - |
307 | 'a[bc]d'i ABD y $& ABD |
308 | 'a[b-d]e'i ABD n - - |
309 | 'a[b-d]e'i ACE y $& ACE |
310 | 'a[b-d]'i AAC y $& AC |
311 | 'a[-b]'i A- y $& A- |
312 | 'a[b-]'i A- y $& A- |
b2a156bd |
313 | 'a[b-a]'i - c - Invalid [] range \"b-a\" |
24b61696 |
314 | 'a[]b'i - c - Unmatched [ |
315 | 'a['i - c - Unmatched [ |
1462b684 |
316 | 'a]'i A] y $& A] |
317 | 'a[]]b'i A]B y $& A]B |
318 | 'a[^bc]d'i AED y $& AED |
319 | 'a[^bc]d'i ABD n - - |
320 | 'a[^-b]c'i ADC y $& ADC |
321 | 'a[^-b]c'i A-C n - - |
322 | 'a[^]b]c'i A]C n - - |
323 | 'a[^]b]c'i ADC y $& ADC |
324 | 'ab|cd'i ABC y $& AB |
325 | 'ab|cd'i ABCD y $& AB |
326 | '()ef'i DEF y $&-$1 EF- |
24b61696 |
327 | '*a'i - c - Quantifier follows nothing |
328 | '(*)b'i - c - Quantifier follows nothing |
1462b684 |
329 | '$b'i B n - - |
1b1626e4 |
330 | 'a\'i - c - Search pattern not terminated |
1462b684 |
331 | 'a\(b'i A(B y $&-$1 A(B- |
332 | 'a\(*b'i AB y $& AB |
333 | 'a\(*b'i A((B y $& A((B |
b2a156bd |
334 | 'a\\b'i A\\B y $& A\\B |
24b61696 |
335 | 'abc)'i - c - Unmatched ) |
336 | '(abc'i - c - Unmatched ( |
1462b684 |
337 | '((a))'i ABC y $&-$1-$2 A-A-A |
338 | '(a)b(c)'i ABC y $&-$1-$2 ABC-A-C |
339 | 'a+b+c'i AABBABC y $& ABC |
340 | 'a{1,}b{1,}c'i AABBABC y $& ABC |
24b61696 |
341 | 'a**'i - c - Nested quantifiers |
a0d0e21e |
342 | 'a.+?c'i ABCABC y $& ABC |
343 | 'a.*?c'i ABCABC y $& ABC |
344 | 'a.{0,5}?c'i ABCABC y $& ABC |
1462b684 |
345 | '(a+|b)*'i AB y $&-$1 AB-B |
346 | '(a+|b){0,}'i AB y $&-$1 AB-B |
347 | '(a+|b)+'i AB y $&-$1 AB-B |
348 | '(a+|b){1,}'i AB y $&-$1 AB-B |
349 | '(a+|b)?'i AB y $&-$1 A-A |
350 | '(a+|b){0,1}'i AB y $&-$1 A-A |
a0d0e21e |
351 | '(a+|b){0,1}?'i AB y $&-$1 - |
24b61696 |
352 | ')('i - c - Unmatched ) |
1462b684 |
353 | '[^ab]*'i CDE y $& CDE |
354 | 'abc'i n - - |
355 | 'a*'i y $& |
356 | '([abc])*d'i ABBBCD y $&-$1 ABBBCD-C |
357 | '([abc])*bcd'i ABCD y $&-$1 ABCD-A |
358 | 'a|b|c|d|e'i E y $& E |
359 | '(a|b|c|d|e)f'i EF y $&-$1 EF-E |
1462b684 |
360 | 'abcd*efg'i ABCDEFG y $& ABCDEFG |
361 | 'ab*'i XABYABBBZ y $& AB |
362 | 'ab*'i XAYABBBZ y $& A |
363 | '(ab|cd)e'i ABCDE y $&-$1 CDE-CD |
364 | '[abhgefdc]ij'i HIJ y $& HIJ |
365 | '^(ab|cd)e'i ABCDE n x$1y XY |
366 | '(abc|)ef'i ABCDEF y $&-$1 EF- |
367 | '(a|b)c*d'i ABCD y $&-$1 BCD-B |
368 | '(ab|ab*)bc'i ABC y $&-$1 ABC-A |
369 | 'a([bc]*)c*'i ABC y $&-$1 ABC-BC |
370 | 'a([bc]*)(c*d)'i ABCD y $&-$1-$2 ABCD-BC-D |
371 | 'a([bc]+)(c*d)'i ABCD y $&-$1-$2 ABCD-BC-D |
372 | 'a([bc]*)(c+d)'i ABCD y $&-$1-$2 ABCD-B-CD |
373 | 'a[bcd]*dcdcde'i ADCDCDE y $& ADCDCDE |
374 | 'a[bcd]+dcdcde'i ADCDCDE n - - |
375 | '(ab|a)b*c'i ABC y $&-$1 ABC-AB |
376 | '((a)(b)c)(d)'i ABCD y $1-$2-$3-$4 ABC-A-B-D |
377 | '[a-zA-Z_][a-zA-Z0-9_]*'i ALPHA y $& ALPHA |
378 | '^a(bc+|b[eh])g|.h$'i ABH y $&-$1 BH- |
379 | '(bc+d$|ef*g.|h?i(j|k))'i EFFGZ y $&-$1-$2 EFFGZ-EFFGZ- |
380 | '(bc+d$|ef*g.|h?i(j|k))'i IJ y $&-$1-$2 IJ-IJ-J |
381 | '(bc+d$|ef*g.|h?i(j|k))'i EFFG n - - |
382 | '(bc+d$|ef*g.|h?i(j|k))'i BCDD n - - |
383 | '(bc+d$|ef*g.|h?i(j|k))'i REFFGZ y $&-$1-$2 EFFGZ-EFFGZ- |
384 | '((((((((((a))))))))))'i A y $10 A |
385 | '((((((((((a))))))))))\10'i AA y $& AA |
9d116dd7 |
386 | '((((((((((a))))))))))${bang}'i AA n - - |
387 | '((((((((((a))))))))))${bang}'i A! y $& A! |
1462b684 |
388 | '(((((((((a)))))))))'i A y $& A |
a0d0e21e |
389 | '(?:(?:(?:(?:(?:(?:(?:(?:(?:(a))))))))))'i A y $1 A |
390 | '(?:(?:(?:(?:(?:(?:(?:(?:(?:(a|b|c))))))))))'i C y $1 C |
1462b684 |
391 | 'multiple words of text'i UH-UH n - - |
392 | 'multiple words'i MULTIPLE WORDS, YEAH y $& MULTIPLE WORDS |
393 | '(.*)c(.*)'i ABCDE y $&-$1-$2 ABCDE-AB-DE |
394 | '\((.*), (.*)\)'i (A, B) y ($2, $1) (B, A) |
395 | '[k]'i AB n - - |
b2a156bd |
396 | 'abcd'i ABCD y $&-\$&-\\$& ABCD-\$&-\\ABCD |
397 | 'a(bc)d'i ABCD y $1-\$1-\\$1 BC-\$1-\\BC |
1462b684 |
398 | 'a[-]?c'i AC y $& AC |
399 | '(abc)\1'i ABCABC y $1 ABC |
400 | '([a-c]*)\1'i ABCABC y $1 ABC |
a0d0e21e |
401 | a(?!b). abad y $& ad |
402 | a(?=d). abad y $& ad |
403 | a(?=c|d). abad y $& ad |
404 | a(?:b|c|d)(.) ace y $1 e |
405 | a(?:b|c|d)*(.) ace y $1 e |
406 | a(?:b|c|d)+?(.) ace y $1 e |
c277df42 |
407 | a(?:b|c|d)+?(.) acdbcdbe y $1 d |
408 | a(?:b|c|d)+(.) acdbcdbe y $1 e |
409 | a(?:b|c|d){2}(.) acdbcdbe y $1 b |
410 | a(?:b|c|d){4,5}(.) acdbcdbe y $1 b |
411 | a(?:b|c|d){4,5}?(.) acdbcdbe y $1 d |
412 | ((foo)|(bar))* foobar y $1-$2-$3 bar-foo-bar |
9baa0206 |
413 | :(?: - c - Sequence (? incomplete |
c277df42 |
414 | a(?:b|c|d){6,7}(.) acdbcdbe y $1 e |
415 | a(?:b|c|d){6,7}?(.) acdbcdbe y $1 e |
416 | a(?:b|c|d){5,6}(.) acdbcdbe y $1 e |
417 | a(?:b|c|d){5,6}?(.) acdbcdbe y $1 b |
418 | a(?:b|c|d){5,7}(.) acdbcdbe y $1 e |
419 | a(?:b|c|d){5,7}?(.) acdbcdbe y $1 b |
a0d0e21e |
420 | a(?:b|(c|e){1,2}?|d)+?(.) ace y $1$2 ce |
421 | ^(.+)?B AB y $1 A |
c277df42 |
422 | ^([^a-z])|(\^)$ . y $1 . |
423 | ^[<>]& <&OUT y $& <& |
424 | ^(a\1?){4}$ aaaaaaaaaa y $1 aaaa |
425 | ^(a\1?){4}$ aaaaaaaaa n - - |
426 | ^(a\1?){4}$ aaaaaaaaaaa n - - |
af3f8c16 |
427 | ^(a(?(1)\1)){4}$ aaaaaaaaaa y $1 aaaa |
428 | ^(a(?(1)\1)){4}$ aaaaaaaaa n - - |
429 | ^(a(?(1)\1)){4}$ aaaaaaaaaaa n - - |
708e3b05 |
430 | ((a{4})+) aaaaaaaaa y $1 aaaaaaaa |
431 | (((aa){2})+) aaaaaaaaaa y $1 aaaaaaaa |
432 | (((a{2}){2})+) aaaaaaaaaa y $1 aaaaaaaa |
c277df42 |
433 | (?:(f)(o)(o)|(b)(a)(r))* foobar y $1:$2:$3:$4:$5:$6 f:o:o:b:a:r |
434 | (?<=a)b ab y $& b |
435 | (?<=a)b cb n - - |
436 | (?<=a)b b n - - |
437 | (?<!c)b ab y $& b |
438 | (?<!c)b cb n - - |
439 | (?<!c)b b y - - |
440 | (?<!c)b b y $& b |
24b61696 |
441 | (?<%)b - c - Sequence (?<%...) not recognized |
c277df42 |
442 | (?:..)*a aba y $& aba |
443 | (?:..)*?a aba y $& a |
444 | ^(?:b|a(?=(.)))*\1 abc y $& ab |
445 | ^(){3,5} abc y a$1 a |
446 | ^(a+)*ax aax y $1 a |
447 | ^((a|b)+)*ax aax y $1 a |
448 | ^((a|bc)+)*ax aax y $1 a |
449 | (a|x)*ab cab y y$1 y |
450 | (a)*ab cab y y$1 y |
451 | (?:(?i)a)b ab y $& ab |
452 | ((?i)a)b ab y $&:$1 ab:a |
453 | (?:(?i)a)b Ab y $& Ab |
454 | ((?i)a)b Ab y $&:$1 Ab:A |
455 | (?:(?i)a)b aB n - - |
456 | ((?i)a)b aB n - - |
ca9dfc88 |
457 | (?i:a)b ab y $& ab |
458 | ((?i:a))b ab y $&:$1 ab:a |
459 | (?i:a)b Ab y $& Ab |
460 | ((?i:a))b Ab y $&:$1 Ab:A |
461 | (?i:a)b aB n - - |
462 | ((?i:a))b aB n - - |
463 | '(?:(?-i)a)b'i ab y $& ab |
464 | '((?-i)a)b'i ab y $&:$1 ab:a |
465 | '(?:(?-i)a)b'i aB y $& aB |
466 | '((?-i)a)b'i aB y $&:$1 aB:a |
467 | '(?:(?-i)a)b'i Ab n - - |
468 | '((?-i)a)b'i Ab n - - |
469 | '(?:(?-i)a)b'i aB y $& aB |
470 | '((?-i)a)b'i aB y $1 a |
471 | '(?:(?-i)a)b'i AB n - - |
472 | '((?-i)a)b'i AB n - - |
473 | '(?-i:a)b'i ab y $& ab |
474 | '((?-i:a))b'i ab y $&:$1 ab:a |
475 | '(?-i:a)b'i aB y $& aB |
476 | '((?-i:a))b'i aB y $&:$1 aB:a |
477 | '(?-i:a)b'i Ab n - - |
478 | '((?-i:a))b'i Ab n - - |
479 | '(?-i:a)b'i aB y $& aB |
480 | '((?-i:a))b'i aB y $1 a |
481 | '(?-i:a)b'i AB n - - |
482 | '((?-i:a))b'i AB n - - |
483 | '((?-i:a.))b'i a\nB n - - |
484 | '((?s-i:a.))b'i a\nB y $1 a\n |
485 | '((?s-i:a.))b'i B\nB n - - |
c277df42 |
486 | (?:c|d)(?:)(?:a(?:)(?:b)(?:b(?:))(?:b(?:)(?:b))) cabbbb y $& cabbbb |
487 | (?:c|d)(?:)(?:aaaaaaaa(?:)(?:bbbbbbbb)(?:bbbbbbbb(?:))(?:bbbbbbbb(?:)(?:bbbbbbbb))) caaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb y $& caaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb |
488 | '(ab)\d\1'i Ab4ab y $1 Ab |
489 | '(ab)\d\1'i ab4Ab y $1 ab |
ad4f75a6 |
490 | foo\w*\d{4}baz foobar1234baz y $& foobar1234baz |
c277df42 |
491 | a(?{})b cabd y $& ab |
24b61696 |
492 | a(?{)b - c - Sequence (?{...}) not terminated or not {}-balanced |
493 | a(?{{})b - c - Sequence (?{...}) not terminated or not {}-balanced |
380a0633 |
494 | a(?{}})b - c - |
24b61696 |
495 | a(?{"{"})b - c - Sequence (?{...}) not terminated or not {}-balanced |
c277df42 |
496 | a(?{"\{"})b cabd y $& ab |
d98d5fff |
497 | a(?{"{"}})b - c - Unmatched right curly bracket |
c277df42 |
498 | a(?{$bl="\{"}).b caxbd y $bl { |
499 | x(~~)*(?:(?:F)?)? x~~ y - - |
500 | ^a(?#xxx){3}c aaac y $& aaac |
501 | '^a (?#xxx) (?#yyy) {3}c'x aaac y $& aaac |
502 | (?<![cd])b dbcb n - - |
503 | (?<![cd])[ab] dbaacb y $& a |
504 | (?<!(c|d))b dbcb n - - |
505 | (?<!(c|d))[ab] dbaacb y $& a |
506 | (?<!cd)[ab] cdaccb y $& b |
507 | ^(?:a?b?)*$ a-- n - - |
508 | ((?s)^a(.))((?m)^b$) a\nb\nc\n y $1;$2;$3 a\n;\n;b |
509 | ((?m)^b$) a\nb\nc\n y $1 b |
510 | (?m)^b a\nb\n y $& b |
511 | (?m)^(b) a\nb\n y $1 b |
512 | ((?m)^b) a\nb\n y $1 b |
513 | \n((?m)^b) a\nb\n y $1 b |
514 | ((?s).)c(?!.) a\nb\nc\n y $1 \n |
515 | ((?s).)c(?!.) a\nb\nc\n y $1:$& \n:\nc |
516 | ((?s)b.)c(?!.) a\nb\nc\n y $1 b\n |
517 | ((?s)b.)c(?!.) a\nb\nc\n y $1:$& b\n:b\nc |
518 | ^b a\nb\nc\n n - - |
519 | ()^b a\nb\nc\n n - - |
520 | ((?m)^b) a\nb\nc\n y $1 b |
521 | (?(1)a|b) a n - - |
522 | (?(1)b|a) a y $& a |
523 | (x)?(?(1)a|b) a n - - |
524 | (x)?(?(1)b|a) a y $& a |
525 | ()?(?(1)b|a) a y $& a |
526 | ()(?(1)b|a) a n - - |
527 | ()?(?(1)a|b) a y $& a |
528 | ^(\()?blah(?(1)(\)))$ (blah) y $2 ) |
529 | ^(\()?blah(?(1)(\)))$ blah y ($2) () |
530 | ^(\()?blah(?(1)(\)))$ blah) n - - |
531 | ^(\()?blah(?(1)(\)))$ (blah n - - |
532 | ^(\(+)?blah(?(1)(\)))$ (blah) y $2 ) |
533 | ^(\(+)?blah(?(1)(\)))$ blah y ($2) () |
534 | ^(\(+)?blah(?(1)(\)))$ blah) n - - |
535 | ^(\(+)?blah(?(1)(\)))$ (blah n - - |
24b61696 |
536 | (?(1?)a|b) a c - Switch condition not recognized |
537 | (?(1)a|b|c) a c - Switch (?(condition)... contains too many branches |
c277df42 |
538 | (?(?{0})a|b) a n - - |
539 | (?(?{0})b|a) a y $& a |
540 | (?(?{1})b|a) a n - - |
541 | (?(?{1})a|b) a y $& a |
542 | (?(?!a)a|b) a n - - |
543 | (?(?!a)b|a) a y $& a |
544 | (?(?=a)b|a) a n - - |
545 | (?(?=a)a|b) a y $& a |
546 | (?=(a+?))(\1ab) aaab y $2 aab |
547 | ^(?=(a+?))\1ab aaab n - - |
548 | (\w+:)+ one: y $1 one: |
549 | $(?<=^(a)) a y $1 a |
550 | (?=(a+?))(\1ab) aaab y $2 aab |
551 | ^(?=(a+?))\1ab aaab n - - |
552 | ([\w:]+::)?(\w+)$ abcd: n - - |
553 | ([\w:]+::)?(\w+)$ abcd y $1-$2 -abcd |
554 | ([\w:]+::)?(\w+)$ xy:z:::abcd y $1-$2 xy:z:::-abcd |
555 | ^[^bcd]*(c+) aexycd y $1 c |
556 | (a*)b+ caab y $1 aa |
557 | ([\w:]+::)?(\w+)$ abcd: n - - |
558 | ([\w:]+::)?(\w+)$ abcd y $1-$2 -abcd |
559 | ([\w:]+::)?(\w+)$ xy:z:::abcd y $1-$2 xy:z:::-abcd |
560 | ^[^bcd]*(c+) aexycd y $1 c |
561 | (?{$a=2})a*aa(?{local$a=$a+1})k*c(?{$b=$a}) yaaxxaaaacd y $b 3 |
562 | (?{$a=2})(a(?{local$a=$a+1}))*aak*c(?{$b=$a}) yaaxxaaaacd y $b 4 |
563 | (>a+)ab aaab n - - |
fe44a5e8 |
564 | (?>a+)b aaab y - - |
4599a1de |
565 | ([[:]+) a:[b]: y $1 :[ |
566 | ([[=]+) a=[b]= y $1 =[ |
567 | ([[.]+) a.[b]. y $1 .[ |
24b61696 |
568 | [a[:xyz: - c - Unmatched [ |
569 | [a[:xyz:] - c - POSIX class [:xyz:] unknown |
767d463e |
570 | [a[:]b[:c] abc y $& abc |
24b61696 |
571 | ([a[:xyz:]b]+) pbaq c - POSIX class [:xyz:] unknown |
b8c5462f |
572 | [a[:]b[:c] abc y $& abc |
573 | ([[:alpha:]]+) ABcd01Xy__-- ${nulnul}${ffff} y $1 ABcd |
574 | ([[:alnum:]]+) ABcd01Xy__-- ${nulnul}${ffff} y $1 ABcd01Xy |
575 | ([[:ascii:]]+) ABcd01Xy__-- ${nulnul}${ffff} y $1 ABcd01Xy__-- ${nulnul} |
576 | ([[:cntrl:]]+) ABcd01Xy__-- ${nulnul}${ffff} y $1 ${nulnul} |
577 | ([[:digit:]]+) ABcd01Xy__-- ${nulnul}${ffff} y $1 01 |
578 | ([[:graph:]]+) ABcd01Xy__-- ${nulnul}${ffff} y $1 ABcd01Xy__-- |
579 | ([[:lower:]]+) ABcd01Xy__-- ${nulnul}${ffff} y $1 cd |
580 | ([[:print:]]+) ABcd01Xy__-- ${nulnul}${ffff} y $1 ABcd01Xy__-- |
581 | ([[:punct:]]+) ABcd01Xy__-- ${nulnul}${ffff} y $1 __-- |
582 | ([[:space:]]+) ABcd01Xy__-- ${nulnul}${ffff} y $1 |
583 | ([[:word:]]+) ABcd01Xy__-- ${nulnul}${ffff} y $1 ABcd01Xy__ |
584 | ([[:upper:]]+) ABcd01Xy__-- ${nulnul}${ffff} y $1 AB |
585 | ([[:xdigit:]]+) ABcd01Xy__-- ${nulnul}${ffff} y $1 ABcd01 |
586 | ([[:^alpha:]]+) ABcd01Xy__-- ${nulnul}${ffff} y $1 01 |
587 | ([[:^alnum:]]+) ABcd01Xy__-- ${nulnul}${ffff} y $1 __-- ${nulnul}${ffff} |
588 | ([[:^ascii:]]+) ABcd01Xy__-- ${nulnul}${ffff} y $1 ${ffff} |
589 | ([[:^cntrl:]]+) ABcd01Xy__-- ${nulnul}${ffff} y $1 ABcd01Xy__-- |
590 | ([[:^digit:]]+) ABcd01Xy__-- ${nulnul}${ffff} y $1 ABcd |
591 | ([[:^lower:]]+) ABcd01Xy__-- ${nulnul}${ffff} y $1 AB |
592 | ([[:^print:]]+) ABcd01Xy__-- ${nulnul}${ffff} y $1 ${nulnul}${ffff} |
593 | ([[:^punct:]]+) ABcd01Xy__-- ${nulnul}${ffff} y $1 ABcd01Xy |
594 | ([[:^space:]]+) ABcd01Xy__-- ${nulnul}${ffff} y $1 ABcd01Xy__-- |
595 | ([[:^word:]]+) ABcd01Xy__-- ${nulnul}${ffff} y $1 -- ${nulnul}${ffff} |
596 | ([[:^upper:]]+) ABcd01Xy__-- ${nulnul}${ffff} y $1 cd01 |
597 | ([[:^xdigit:]]+) ABcd01Xy__-- ${nulnul}${ffff} y $1 Xy__-- ${nulnul}${ffff} |
24b61696 |
598 | [[:foo:]] - c - POSIX class [:foo:] unknown |
599 | [[:^foo:]] - c - POSIX class [:^foo:] unknown |
fe44a5e8 |
600 | ((?>a+)b) aaab y $1 aaab |
601 | (?>(a+))b aaab y $1 aaa |
c277df42 |
602 | ((?>[^()]+)|\([^()]*\))+ ((abc(ade)ufh()()x y $& abc(ade)ufh()()x |
24b61696 |
603 | (?<=x+)y - c - Variable length lookbehind not implemented |
9baa0206 |
604 | a{37,17} - c - Can't do {n,m} with n > m |
cf93c79d |
605 | \Z a\nb\n y $-[0] 3 |
606 | \z a\nb\n y $-[0] 4 |
607 | $ a\nb\n y $-[0] 3 |
608 | \Z b\na\n y $-[0] 3 |
609 | \z b\na\n y $-[0] 4 |
610 | $ b\na\n y $-[0] 3 |
611 | \Z b\na y $-[0] 3 |
612 | \z b\na y $-[0] 3 |
613 | $ b\na y $-[0] 3 |
614 | '\Z'm a\nb\n y $-[0] 3 |
615 | '\z'm a\nb\n y $-[0] 4 |
616 | '$'m a\nb\n y $-[0] 1 |
617 | '\Z'm b\na\n y $-[0] 3 |
618 | '\z'm b\na\n y $-[0] 4 |
619 | '$'m b\na\n y $-[0] 1 |
620 | '\Z'm b\na y $-[0] 3 |
621 | '\z'm b\na y $-[0] 3 |
622 | '$'m b\na y $-[0] 1 |
b85d18e9 |
623 | a\Z a\nb\n n - - |
cf93c79d |
624 | a\z a\nb\n n - - |
625 | a$ a\nb\n n - - |
626 | a\Z b\na\n y $-[0] 2 |
627 | a\z b\na\n n - - |
628 | a$ b\na\n y $-[0] 2 |
629 | a\Z b\na y $-[0] 2 |
630 | a\z b\na y $-[0] 2 |
631 | a$ b\na y $-[0] 2 |
a1917ab9 |
632 | 'a\Z'm a\nb\n n - - |
cf93c79d |
633 | 'a\z'm a\nb\n n - - |
634 | 'a$'m a\nb\n y $-[0] 0 |
635 | 'a\Z'm b\na\n y $-[0] 2 |
636 | 'a\z'm b\na\n n - - |
637 | 'a$'m b\na\n y $-[0] 2 |
638 | 'a\Z'm b\na y $-[0] 2 |
639 | 'a\z'm b\na y $-[0] 2 |
640 | 'a$'m b\na y $-[0] 2 |
641 | aa\Z aa\nb\n n - - |
642 | aa\z aa\nb\n n - - |
643 | aa$ aa\nb\n n - - |
644 | aa\Z b\naa\n y $-[0] 2 |
645 | aa\z b\naa\n n - - |
646 | aa$ b\naa\n y $-[0] 2 |
647 | aa\Z b\naa y $-[0] 2 |
648 | aa\z b\naa y $-[0] 2 |
649 | aa$ b\naa y $-[0] 2 |
a1917ab9 |
650 | 'aa\Z'm aa\nb\n n - - |
cf93c79d |
651 | 'aa\z'm aa\nb\n n - - |
652 | 'aa$'m aa\nb\n y $-[0] 0 |
653 | 'aa\Z'm b\naa\n y $-[0] 2 |
654 | 'aa\z'm b\naa\n n - - |
655 | 'aa$'m b\naa\n y $-[0] 2 |
656 | 'aa\Z'm b\naa y $-[0] 2 |
657 | 'aa\z'm b\naa y $-[0] 2 |
658 | 'aa$'m b\naa y $-[0] 2 |
659 | aa\Z ac\nb\n n - - |
660 | aa\z ac\nb\n n - - |
661 | aa$ ac\nb\n n - - |
662 | aa\Z b\nac\n n - - |
663 | aa\z b\nac\n n - - |
664 | aa$ b\nac\n n - - |
665 | aa\Z b\nac n - - |
666 | aa\z b\nac n - - |
667 | aa$ b\nac n - - |
668 | 'aa\Z'm ac\nb\n n - - |
669 | 'aa\z'm ac\nb\n n - - |
670 | 'aa$'m ac\nb\n n - - |
671 | 'aa\Z'm b\nac\n n - - |
672 | 'aa\z'm b\nac\n n - - |
673 | 'aa$'m b\nac\n n - - |
674 | 'aa\Z'm b\nac n - - |
675 | 'aa\z'm b\nac n - - |
676 | 'aa$'m b\nac n - - |
677 | aa\Z ca\nb\n n - - |
678 | aa\z ca\nb\n n - - |
679 | aa$ ca\nb\n n - - |
680 | aa\Z b\nca\n n - - |
681 | aa\z b\nca\n n - - |
682 | aa$ b\nca\n n - - |
683 | aa\Z b\nca n - - |
684 | aa\z b\nca n - - |
685 | aa$ b\nca n - - |
686 | 'aa\Z'm ca\nb\n n - - |
687 | 'aa\z'm ca\nb\n n - - |
688 | 'aa$'m ca\nb\n n - - |
689 | 'aa\Z'm b\nca\n n - - |
690 | 'aa\z'm b\nca\n n - - |
691 | 'aa$'m b\nca\n n - - |
692 | 'aa\Z'm b\nca n - - |
693 | 'aa\z'm b\nca n - - |
694 | 'aa$'m b\nca n - - |
695 | ab\Z ab\nb\n n - - |
696 | ab\z ab\nb\n n - - |
697 | ab$ ab\nb\n n - - |
698 | ab\Z b\nab\n y $-[0] 2 |
699 | ab\z b\nab\n n - - |
700 | ab$ b\nab\n y $-[0] 2 |
701 | ab\Z b\nab y $-[0] 2 |
702 | ab\z b\nab y $-[0] 2 |
703 | ab$ b\nab y $-[0] 2 |
a1917ab9 |
704 | 'ab\Z'm ab\nb\n n - - |
cf93c79d |
705 | 'ab\z'm ab\nb\n n - - |
706 | 'ab$'m ab\nb\n y $-[0] 0 |
707 | 'ab\Z'm b\nab\n y $-[0] 2 |
708 | 'ab\z'm b\nab\n n - - |
709 | 'ab$'m b\nab\n y $-[0] 2 |
710 | 'ab\Z'm b\nab y $-[0] 2 |
711 | 'ab\z'm b\nab y $-[0] 2 |
712 | 'ab$'m b\nab y $-[0] 2 |
713 | ab\Z ac\nb\n n - - |
714 | ab\z ac\nb\n n - - |
715 | ab$ ac\nb\n n - - |
716 | ab\Z b\nac\n n - - |
717 | ab\z b\nac\n n - - |
718 | ab$ b\nac\n n - - |
719 | ab\Z b\nac n - - |
720 | ab\z b\nac n - - |
721 | ab$ b\nac n - - |
722 | 'ab\Z'm ac\nb\n n - - |
723 | 'ab\z'm ac\nb\n n - - |
724 | 'ab$'m ac\nb\n n - - |
725 | 'ab\Z'm b\nac\n n - - |
726 | 'ab\z'm b\nac\n n - - |
727 | 'ab$'m b\nac\n n - - |
728 | 'ab\Z'm b\nac n - - |
729 | 'ab\z'm b\nac n - - |
730 | 'ab$'m b\nac n - - |
731 | ab\Z ca\nb\n n - - |
732 | ab\z ca\nb\n n - - |
733 | ab$ ca\nb\n n - - |
734 | ab\Z b\nca\n n - - |
735 | ab\z b\nca\n n - - |
736 | ab$ b\nca\n n - - |
737 | ab\Z b\nca n - - |
738 | ab\z b\nca n - - |
739 | ab$ b\nca n - - |
740 | 'ab\Z'm ca\nb\n n - - |
741 | 'ab\z'm ca\nb\n n - - |
742 | 'ab$'m ca\nb\n n - - |
743 | 'ab\Z'm b\nca\n n - - |
744 | 'ab\z'm b\nca\n n - - |
745 | 'ab$'m b\nca\n n - - |
746 | 'ab\Z'm b\nca n - - |
747 | 'ab\z'm b\nca n - - |
748 | 'ab$'m b\nca n - - |
749 | abb\Z abb\nb\n n - - |
750 | abb\z abb\nb\n n - - |
751 | abb$ abb\nb\n n - - |
752 | abb\Z b\nabb\n y $-[0] 2 |
753 | abb\z b\nabb\n n - - |
754 | abb$ b\nabb\n y $-[0] 2 |
755 | abb\Z b\nabb y $-[0] 2 |
756 | abb\z b\nabb y $-[0] 2 |
757 | abb$ b\nabb y $-[0] 2 |
a1917ab9 |
758 | 'abb\Z'm abb\nb\n n - - |
cf93c79d |
759 | 'abb\z'm abb\nb\n n - - |
760 | 'abb$'m abb\nb\n y $-[0] 0 |
761 | 'abb\Z'm b\nabb\n y $-[0] 2 |
762 | 'abb\z'm b\nabb\n n - - |
763 | 'abb$'m b\nabb\n y $-[0] 2 |
764 | 'abb\Z'm b\nabb y $-[0] 2 |
765 | 'abb\z'm b\nabb y $-[0] 2 |
766 | 'abb$'m b\nabb y $-[0] 2 |
767 | abb\Z ac\nb\n n - - |
768 | abb\z ac\nb\n n - - |
769 | abb$ ac\nb\n n - - |
770 | abb\Z b\nac\n n - - |
771 | abb\z b\nac\n n - - |
772 | abb$ b\nac\n n - - |
773 | abb\Z b\nac n - - |
774 | abb\z b\nac n - - |
775 | abb$ b\nac n - - |
776 | 'abb\Z'm ac\nb\n n - - |
777 | 'abb\z'm ac\nb\n n - - |
778 | 'abb$'m ac\nb\n n - - |
779 | 'abb\Z'm b\nac\n n - - |
780 | 'abb\z'm b\nac\n n - - |
781 | 'abb$'m b\nac\n n - - |
782 | 'abb\Z'm b\nac n - - |
783 | 'abb\z'm b\nac n - - |
784 | 'abb$'m b\nac n - - |
785 | abb\Z ca\nb\n n - - |
786 | abb\z ca\nb\n n - - |
787 | abb$ ca\nb\n n - - |
788 | abb\Z b\nca\n n - - |
789 | abb\z b\nca\n n - - |
790 | abb$ b\nca\n n - - |
791 | abb\Z b\nca n - - |
792 | abb\z b\nca n - - |
793 | abb$ b\nca n - - |
794 | 'abb\Z'm ca\nb\n n - - |
795 | 'abb\z'm ca\nb\n n - - |
796 | 'abb$'m ca\nb\n n - - |
797 | 'abb\Z'm b\nca\n n - - |
798 | 'abb\z'm b\nca\n n - - |
799 | 'abb$'m b\nca\n n - - |
800 | 'abb\Z'm b\nca n - - |
801 | 'abb\z'm b\nca n - - |
802 | 'abb$'m b\nca n - - |
8e680dc3 |
803 | (^|x)(c) ca y $2 c |
aca2d497 |
804 | a*abc?xyz+pqr{3}ab{2,}xy{4,5}pq{0,6}AB{0,}zz x n - - |
0f5d15d6 |
805 | a(?{$a=2;$b=3;($b)=$a})b yabz y $b 2 |
9fe1d20c |
806 | round\(((?>[^()]+))\) _I(round(xs * sz),1) y $1 xs * sz |
ce3e6498 |
807 | '((?x:.) )' x y $1- x - |
808 | '((?-x:.) )'x x y $1- x- |
adac82c7 |
809 | foo.bart foo.bart y - - |
2c2d71f5 |
810 | '^d[x][x][x]'m abcd\ndxxx y - - |
811 | .X(.+)+X bbbbXcXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa y - - |
812 | .X(.+)+XX bbbbXcXXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa y - - |
813 | .XX(.+)+X bbbbXXcXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa y - - |
814 | .X(.+)+X bbbbXXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa n - - |
815 | .X(.+)+XX bbbbXXXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa n - - |
816 | .XX(.+)+X bbbbXXXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa n - - |
817 | .X(.+)+[X] bbbbXcXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa y - - |
818 | .X(.+)+[X][X] bbbbXcXXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa y - - |
819 | .XX(.+)+[X] bbbbXXcXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa y - - |
820 | .X(.+)+[X] bbbbXXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa n - - |
821 | .X(.+)+[X][X] bbbbXXXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa n - - |
822 | .XX(.+)+[X] bbbbXXXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa n - - |
823 | .[X](.+)+[X] bbbbXcXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa y - - |
824 | .[X](.+)+[X][X] bbbbXcXXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa y - - |
825 | .[X][X](.+)+[X] bbbbXXcXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa y - - |
826 | .[X](.+)+[X] bbbbXXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa n - - |
827 | .[X](.+)+[X][X] bbbbXXXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa n - - |
828 | .[X][X](.+)+[X] bbbbXXXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa n - - |
829 | tt+$ xxxtt y - - |
1209ba90 |
830 | ([a-\d]+) za-9z y $1 a-9 |
1209ba90 |
831 | ([\d-z]+) a0-za y $1 0-z |
73b437c8 |
832 | ([\d-\s]+) a0- z y $1 0- |
1209ba90 |
833 | ([a-[:digit:]]+) za-9z y $1 a-9 |
1209ba90 |
834 | ([[:digit:]-z]+) =0-z= y $1 0-z |
73b437c8 |
835 | ([[:digit:]-[:alpha:]]+) =0-z= y $1 0-z |
30382c73 |
836 | \GX.*X aaaXbX n - - |
6eb5f6b9 |
837 | (\d+\.\d+) 3.1415926 y $1 3.1415926 |
838 | (\ba.{0,10}br) have a web browser y $1 a web br |
66e933ab |
839 | '\.c(pp|xx|c)?$'i Changes n - - |
840 | '\.c(pp|xx|c)?$'i IO.c y - - |
841 | '(\.c(pp|xx|c)?$)'i IO.c y $1 .c |
653099ff |
842 | ^([a-z]:) C:/ n - - |
60e71179 |
843 | '^\S\s+aa$'m \nx aa y - - |
de0c8cb8 |
844 | (^|a)b ab y - - |
f06a1d4e |
845 | ^([ab]*?)(b)?(c)$ abac y -$2- -- |
29d1e993 |
846 | (\w)?(abc)\1b abcab n - - |
2a8d9689 |
847 | ^(?:.,){2}c a,b,c y - - |
848 | ^(.,){2}c a,b,c y $1 b, |
849 | ^(?:[^,]*,){2}c a,b,c y - - |
850 | ^([^,]*,){2}c a,b,c y $1 b, |
4b2cff9a |
851 | ^([^,]*,){3}d aaa,b,c,d y $1 c, |
852 | ^([^,]*,){3,}d aaa,b,c,d y $1 c, |
853 | ^([^,]*,){0,3}d aaa,b,c,d y $1 c, |
854 | ^([^,]{1,3},){3}d aaa,b,c,d y $1 c, |
855 | ^([^,]{1,3},){3,}d aaa,b,c,d y $1 c, |
856 | ^([^,]{1,3},){0,3}d aaa,b,c,d y $1 c, |
857 | ^([^,]{1,},){3}d aaa,b,c,d y $1 c, |
858 | ^([^,]{1,},){3,}d aaa,b,c,d y $1 c, |
859 | ^([^,]{1,},){0,3}d aaa,b,c,d y $1 c, |
860 | ^([^,]{0,3},){3}d aaa,b,c,d y $1 c, |
861 | ^([^,]{0,3},){3,}d aaa,b,c,d y $1 c, |
862 | ^([^,]{0,3},){0,3}d aaa,b,c,d y $1 c, |
bf93d4cc |
863 | (?i) y - - |
c2a73568 |
864 | '(?!\A)x'm a\nxb\n y - - |
c1d44abf |
865 | ^(a(b)?)+$ aba y -$1-$2- -a-- |
866 | ^(aa(bb)?)+$ aabbaa y -$1-$2- -aa-- |
0e41cd87 |
867 | '^.{9}abc.*\n'm 123\nabcabcabcabc\n y - - |
66417f84 |
868 | ^(a)?a$ a y -$1- -- |
869 | ^(a)?(?(1)a|b)+$ a n - - |
cb434fcc |
870 | ^(a\1?)(a\1?)(a\2?)(a\3?)$ aaaaaa y $1,$2,$3,$4 a,aa,a,aa |
871 | ^(a\1?){4}$ aaaaaa y $1 aa |
872 | ^(0+)?(?:x(1))? x1 y - - |
873 | ^([0-9a-fA-F]+)(?:x([0-9a-fA-F]+)?)(?:x([0-9a-fA-F]+))? 012cxx0190 y - - |
e1901655 |
874 | ^(b+?|a){1,2}c bbbac y $1 a |
875 | ^(b+?|a){1,2}c bbbbac y $1 a |
2e36c929 |
876 | \((\w\. \w+)\) cd. (A. Tw) y -$1- -A. Tw- |
f49d4d0f |
877 | ((?:aaaa|bbbb)cccc)? aaaacccc y - - |
878 | ((?:aaaa|bbbb)cccc)? bbbbcccc y - - |
36670241 |
879 | (a)?(a)+ a y $1:$2 :a - |
880 | (ab)?(ab)+ ab y $1:$2 :ab - |
881 | (abc)?(abc)+ abc y $1:$2 :abc - |
12d33761 |
882 | 'b\s^'m a\nb\n n - - |
ee0b7718 |
883 | \ba a y - - |
8e514ae6 |
884 | ^(a(??{"(?!)"})|(a)(?{1}))b ab y $2 a # [ID 20010811.006] |
055bb491 |
885 | ab(?i)cd AbCd n - - # [ID 20010809.023] |
886 | ab(?i)cd abCd y - - |
f31a99c8 |
887 | (A|B)*(?(1)(CD)|(CD)) CD y $2-$3 -CD |
888 | (A|B)*(?(1)(CD)|(CD)) ABCD y $2-$3 CD- |
889 | (A|B)*?(?(1)(CD)|(CD)) CD y $2-$3 -CD # [ID 20010803.016] |
890 | (A|B)*?(?(1)(CD)|(CD)) ABCD y $2-$3 CD- |
f65d3ee7 |
891 | '^(o)(?!.*\1)'i Oo n - - |
24ba5a3c |
892 | (.*)\d+\1 abc12bc y $1 bc |
1ac24cf0 |
893 | (?m:(foo\s*$)) foo\n bar y $1 foo |
a84d97b6 |
894 | (.*)c abcd y $1 ab |
895 | (.*)(?=c) abcd y $1 ab |
896 | (.*)(?=c)c abcd yB $1 ab |
897 | (.*)(?=b|c) abcd y $1 ab |
898 | (.*)(?=b|c)c abcd y $1 ab |
899 | (.*)(?=c|b) abcd y $1 ab |
900 | (.*)(?=c|b)c abcd y $1 ab |
901 | (.*)(?=[bc]) abcd y $1 ab |
902 | (.*)(?=[bc])c abcd yB $1 ab |
903 | (.*)(?<=b) abcd y $1 ab |
904 | (.*)(?<=b)c abcd y $1 ab |
905 | (.*)(?<=b|c) abcd y $1 abc |
906 | (.*)(?<=b|c)c abcd y $1 ab |
907 | (.*)(?<=c|b) abcd y $1 abc |
908 | (.*)(?<=c|b)c abcd y $1 ab |
909 | (.*)(?<=[bc]) abcd y $1 abc |
910 | (.*)(?<=[bc])c abcd y $1 ab |
911 | (.*?)c abcd y $1 ab |
912 | (.*?)(?=c) abcd y $1 ab |
913 | (.*?)(?=c)c abcd yB $1 ab |
914 | (.*?)(?=b|c) abcd y $1 a |
915 | (.*?)(?=b|c)c abcd y $1 ab |
916 | (.*?)(?=c|b) abcd y $1 a |
917 | (.*?)(?=c|b)c abcd y $1 ab |
918 | (.*?)(?=[bc]) abcd y $1 a |
919 | (.*?)(?=[bc])c abcd yB $1 ab |
920 | (.*?)(?<=b) abcd y $1 ab |
921 | (.*?)(?<=b)c abcd y $1 ab |
922 | (.*?)(?<=b|c) abcd y $1 ab |
923 | (.*?)(?<=b|c)c abcd y $1 ab |
924 | (.*?)(?<=c|b) abcd y $1 ab |
925 | (.*?)(?<=c|b)c abcd y $1 ab |
926 | (.*?)(?<=[bc]) abcd y $1 ab |
927 | (.*?)(?<=[bc])c abcd y $1 ab |
d3aea5f7 |
928 | 2(]*)?$\1 2 y $& 2 |
075aa684 |
929 | (??{}) x y - - |
ecc99935 |
930 | a(b)?? abc y <$1> <> # undef [perl #16773] |
c152dc43 |
931 | (\d{1,3}\.){3,} 128.134.142.8 y <$1> <142.> # [perl #18019] |
b0e70d55 |
932 | ^.{3,4}(.+)\1\z foobarbar y $1 bar # 16 tests for [perl #23171] |
933 | ^(?:f|o|b){3,4}(.+)\1\z foobarbar y $1 bar |
934 | ^.{3,4}((?:b|a|r)+)\1\z foobarbar y $1 bar |
935 | ^(?:f|o|b){3,4}((?:b|a|r)+)\1\z foobarbar y $1 bar |
936 | ^.{3,4}(.+?)\1\z foobarbar y $1 bar |
937 | ^(?:f|o|b){3,4}(.+?)\1\z foobarbar y $1 bar |
938 | ^.{3,4}((?:b|a|r)+?)\1\z foobarbar y $1 bar |
939 | ^(?:f|o|b){3,4}((?:b|a|r)+?)\1\z foobarbar y $1 bar |
940 | ^.{2,3}?(.+)\1\z foobarbar y $1 bar |
941 | ^(?:f|o|b){2,3}?(.+)\1\z foobarbar y $1 bar |
942 | ^.{2,3}?((?:b|a|r)+)\1\z foobarbar y $1 bar |
943 | ^(?:f|o|b){2,3}?((?:b|a|r)+)\1\z foobarbar y $1 bar |
944 | ^.{2,3}?(.+?)\1\z foobarbar y $1 bar |
945 | ^(?:f|o|b){2,3}?(.+?)\1\z foobarbar y $1 bar |
946 | ^.{2,3}?((?:b|a|r)+?)\1\z foobarbar y $1 bar |
947 | ^(?:f|o|b){2,3}?((?:b|a|r)+?)\1\z foobarbar y $1 bar |
c2b0868c |
948 | .*a(?!(b|cd)*e).*f ......abef n - - # [perl #23030] |
e994fd66 |
949 | x(?# x c - Sequence (?#... not terminated |
950 | :x(?#: x c - Sequence (?#... not terminated |
a3621e74 |
951 | (WORDS|WORD)S WORDS y $1 WORD |
952 | (X.|WORDS|X.|WORD)S WORDS y $1 WORD |
953 | (WORDS|WORLD|WORD)S WORDS y $1 WORD |
954 | (X.|WORDS|WORD|Y.)S WORDS y $1 WORD |
955 | (foo|fool|x.|money|parted)$ fool y $1 fool |
956 | (x.|foo|fool|x.|money|parted|y.)$ fool y $1 fool |
957 | (foo|fool|money|parted)$ fool y $1 fool |
958 | (foo|fool|x.|money|parted)$ fools n - - |
959 | (x.|foo|fool|x.|money|parted|y.)$ fools n - - |
960 | (foo|fool|money|parted)$ fools n - - |
3dab1dad |
961 | (a|aa|aaa||aaaa|aaaaa|aaaaaa)(b|c) aaaaaaaaaaaaaaab y $1$2 aaaaaab |
962 | (a|aa|aaa||aaaa|aaaaa|aaaaaa)(??{$1&&""})(b|c) aaaaaaaaaaaaaaab y $1$2 aaaaaab |
a3621e74 |
963 | (a|aa|aaa|aaaa|aaaaa|aaaaaa)(??{$1&&"foo"})(b|c) aaaaaaaaaaaaaaab n - - |
3ab3c9b4 |
964 | ^(a*?)(?!(aa|aaaa)*$) aaaaaaaaaaaaaaaaaaaa y $1 a # [perl #34195] |
965 | ^(a*?)(?!(aa|aaaa)*$)(?=a\z) aaaaaaaa y $1 aaaaaaa |
c315bfe8 |
966 | ^(.)\s+.$(?(1)) A B y $1 A # [perl #37688] |
3a2830be |
967 | (?:r?)*?r|(.{2,4}) abcde y $1 abcd |
968 | (?!)+?|(.{2,4}) abcde y $1 abcd |
7409bbd3 |
969 | ^(a*?)(?!(a{6}|a{5})*$) aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa y $+[1] 12 # super-linear cache bug may return 18 |
dad79028 |
970 | ^((?>(?:aa)?b)?) aab y $1 aab |
971 | ^((?:aa)*)(?:X+((?:\d+|-)(?:X+(.+))?))?$ aaaaX5 y $1 aaaa |
3dab1dad |
972 | X(A|B||C|D)Y XXXYYY y $& XY # Trie w/ NOTHING |
973 | (?i:X([A]|[B]|y[Y]y|[D]|)Y) XXXYYYB y $& XY # Trie w/ NOTHING |
40a82448 |
974 | ^([a]{1})*$ aa y $1 a |
3298f257 |
975 | a(?!b(?!c))(..) abababc y $1 bc # test nested negatives |
976 | a(?!b(?=a))(..) abababc y $1 bc # test nested lookaheads |
977 | a(?!b(?!c(?!d(?!e))))...(.) abxabcdxabcde y $1 e |
978 | X(?!b+(?!(c+)*(?!(c+)*d))).*X aXbbbbbbbcccccccccccccaaaX y - - |
786e8c11 |
979 | ^(XXXXXXXXXX|YYYYYYYYYY|Z.Q*X|Z[TE]Q*P): ZEQQQQQQQQQQQQQQQQQQP: y $1 ZEQQQQQQQQQQQQQQQQQQP |
980 | ^(XXXXXXXXXX|YYYYYYYYYY|Z.Q*X|Z[TE]Q*P): ZEQQQX: y $1 ZEQQQX |
981 | ^([TUV]+|XXXXXXXXXX|YYYYYYYYYY|Z.Q*X|Z[TE]Q*P): ZEQQQQQQQQQQQQQQQQQQP: y $1 ZEQQQQQQQQQQQQQQQQQQP |
982 | ^([TUV]+|XXXXXXXXXX|YYYYYYYYYY|Z.Q*X|Z[TE]Q*P): ZEQQQX: y $1 ZEQQQX |
983 | ^([TUV]+|XXXXXXXXXX|YYYYYYYYYY|Z.Q*X|Z[TE]Q*P|[MKJ]): ZEQQQQQQQQQQQQQQQQQQP: y $1 ZEQQQQQQQQQQQQQQQQQQP |
984 | ^([TUV]+|XXXXXXXXXX|YYYYYYYYYY|Z.Q*X|Z[TE]Q*P|[MKJ]): ZEQQQX: y $1 ZEQQQX |
985 | ^(XXX|YYY|Z.Q*X|Z[TE]Q*P): ZEQQQQQQQQQQQQQQQQQQP: y $1 ZEQQQQQQQQQQQQQQQQQQP |
986 | ^(XXX|YYY|Z.Q*X|Z[TE]Q*P): ZEQQQX: y $1 ZEQQQX |
987 | ^([TUV]+|XXX|YYY|Z.Q*X|Z[TE]Q*P): ZEQQQQQQQQQQQQQQQQQQP: y $1 ZEQQQQQQQQQQQQQQQQQQP |
988 | ^([TUV]+|XXX|YYY|Z.Q*X|Z[TE]Q*P): ZEQQQX: y $1 ZEQQQX |
989 | ^([TUV]+|XXX|YYY|Z.Q*X|Z[TE]Q*P|[MKJ]): ZEQQQQQQQQQQQQQQQQQQP: y $1 ZEQQQQQQQQQQQQQQQQQQP |
990 | ^([TUV]+|XXX|YYY|Z.Q*X|Z[TE]Q*P|[MKJ]): ZEQQQX: y $1 ZEQQQX |
991 | X(?:ABCF[cC]x*|ABCD|ABCF):(?:DIT|DID|DIM) XABCFCxxxxxxxxxx:DIM y $& XABCFCxxxxxxxxxx:DIM |
992 | (((ABCD|ABCE|ABCF)))(A|B|C[xy]*): ABCFCxxxxxxxxxx:DIM y $& ABCFCxxxxxxxxxx: |
1de06328 |
993 | (?=foo) foo y pos 0 |
994 | (?=foo) XfooY y pos 1 |
995 | .*(?=foo) XfooY y pos 1 |
996 | (?<=foo) foo y pos 3 |
997 | (?<=foo) XfooY y pos 4 |
998 | .*(?<=foo) foo y pos 3 |
999 | .*(?<=foo) XfooY y pos 4 |
1000 | (?<=foo)Y XfooY y pos 5 |
1001 | o(?<=foo)Y ..XfooY.. y pos 7 |
1002 | X(?=foo)f ..XfooY.. y pos 4 |
1003 | X(?=foo) ..XfooY.. y pos 3 |
1004 | X(?<=foo.)[YZ] ..XfooXY.. y pos 8 |
1005 | (?=XY*foo) Xfoo y pos 0 |
1006 | ^(?=XY*foo) Xfoo y pos 0 |
faec1544 |
1007 | ^(??{"a+"})a aa y $& aa |
1008 | ^(?:(??{"a+"})|b)a aa y $& aa |
1009 | ^(??{chr 0x100}).$ \x{100}\x{100} y $& \x{100}\x{100} |
1010 | ^(??{q(\x{100})}). \x{100}\x{100} y $& \x{100}\x{100} |
1011 | ^(??{q(.+)})\x{100} \x{100}\x{100} y $& \x{100}\x{100} |
1012 | ^(??{q(.)})\x{100} \x{100}\x{100} y $& \x{100}\x{100} |
1013 | ^(??{chr 0x100})\xbb \x{100}\x{bb} y $& \x{100}\x{bb} |
1014 | ^(.)(??{"(.)(.)"})(.)$ abcd y $1-$2 a-d |
1015 | ^(.)(??{"(bz+|.)(.)"})(.)$ abcd y $1-$2 a-d |
1016 | ^(.)((??{"(.)(cz+)"})|.) abcd y $1-$2 a-b |
1017 | ^a(?>(??{q(b)}))(??{q(c)})d abcd y - - |
1018 | ^x(??{""})+$ x y $& x |
6bda09f9 |
1019 | ^(<(?:[^<>]+|(?3)|(?1))*>)()(!>!>!>)$ <<!>!>!>><>>!>!>!> y $1 <<!>!>!>><>> |
1020 | ^(<(?:[^<>]+|(?1))*>)$ <<><<<><>>>> y $1 <<><<<><>>>> |
1021 | ((?2)*)([fF]o+) fooFoFoo y $1-$2 fooFo-Foo |
1022 | (<(?:[^<>]+|(?R))*>) <<><<<><>>>> y $1 <<><<<><>>>> |
81714fb9 |
1023 | (?<n>foo|bar|baz) snofooewa y $1 foo |
1024 | (?<n>foo|bar|baz) snofooewa y $+{n} foo |
1025 | (?<n>foo|bar|baz)(?<m>[ew]+) snofooewa y $+{n} foo |
1026 | (?<n>foo|bar|baz)(?<m>[ew]+) snofooewa y $+{m} ew |
1027 | (?<n>foo)|(?<n>bar)|(?<n>baz) snofooewa y $+{n} foo |
1028 | (?<n>foo)(??{ $+{n} }) snofooefoofoowaa y $+{n} foo |
1029 | /(?'n'foo|bar|baz)/ snofooewa y $1 foo |
1030 | /(?'n'foo|bar|baz)/ snofooewa y $+{n} foo |
1031 | /(?'n'foo|bar|baz)(?'m'[ew]+)/ snofooewa y $+{n} foo |
1032 | /(?'n'foo|bar|baz)(?'m'[ew]+)/ snofooewa y $+{m} ew |
1033 | /(?'n'foo)|(?'n'bar)|(?<n>baz)/ snobazewa y $+{n} baz |
1034 | /(?'n'foo)(??{ $+{n} })/ snofooefoofoowaa y $+{n} foo |
1035 | /(?'n'foo)\k<n>/ ..foofoo.. y $1 foo |
1036 | /(?'n'foo)\k<n>/ ..foofoo.. y $+{n} foo |
1037 | /(?<n>foo)\k'n'/ ..foofoo.. y $1 foo |
1038 | /(?<n>foo)\k'n'/ ..foofoo.. y $+{n} foo |
1039 | /(?:(?<n>foo)|(?<n>bar))\k<n>/ ..barbar.. y $+{n} bar |
894be9b7 |
1040 | /^(?'main'<(?:[^<>]+|(?&crap)|(?&main))*>)(?'empty')(?'crap'!>!>!>)$/ <<!>!>!>><>>!>!>!> y $+{main} <<!>!>!>><>> |
1041 | /^(?'main'<(?:[^<>]+|(?&main))*>)$/ <<><<<><>>>> y $1 <<><<<><>>>> |
1042 | /(?'first'(?&second)*)(?'second'[fF]o+)/ fooFoFoo y $+{first}-$+{second} fooFo-Foo |