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