/[pcre]/code/trunk/testdata/testinput11
ViewVC logotype

Contents of /code/trunk/testdata/testinput11

Parent Directory Parent Directory | Revision Log Revision Log


Revision 448 - (show annotations)
Tue Sep 15 19:11:48 2009 UTC (9 years, 11 months ago) by ph10
File size: 3812 byte(s)
Error occurred while calculating annotation data.
Re-organize tests to make is possible to test 5.10 features against Perl.
1 /\H\h\V\v/
2 X X\x0a
3 X\x09X\x0b
4 ** Failers
5 \xa0 X\x0a
6
7 /\H*\h+\V?\v{3,4}/
8 \x09\x20\xa0X\x0a\x0b\x0c\x0d\x0a
9 \x09\x20\xa0\x0a\x0b\x0c\x0d\x0a
10 \x09\x20\xa0\x0a\x0b\x0c
11 ** Failers
12 \x09\x20\xa0\x0a\x0b
13
14 /\H{3,4}/
15 XY ABCDE
16 XY PQR ST
17
18 /.\h{3,4}./
19 XY AB PQRS
20
21 /\h*X\h?\H+Y\H?Z/
22 >XNNNYZ
23 > X NYQZ
24 ** Failers
25 >XYZ
26 > X NY Z
27
28 /\v*X\v?Y\v+Z\V*\x0a\V+\x0b\V{2,3}\x0c/
29 >XY\x0aZ\x0aA\x0bNN\x0c
30 >\x0a\x0dX\x0aY\x0a\x0bZZZ\x0aAAA\x0bNNN\x0c
31
32 /(foo)\Kbar/
33 foobar
34
35 /(foo)(\Kbar|baz)/
36 foobar
37 foobaz
38
39 /(foo\Kbar)baz/
40 foobarbaz
41
42 /abc\K|def\K/g+
43 Xabcdefghi
44
45 /ab\Kc|de\Kf/g+
46 Xabcdefghi
47
48 /(?=C)/g+
49 ABCDECBA
50
51 /^abc\K/+
52 abcdef
53 ** Failers
54 defabcxyz
55
56 /^(a(b))\1\g1\g{1}\g-1\g{-1}\g{-02}Z/
57 ababababbbabZXXXX
58
59 /(?<A>tom|bon)-\g{A}/
60 tom-tom
61 bon-bon
62
63 /(^(a|b\g{-1}))/
64 bacxxx
65
66 /(?|(abc)|(xyz))\1/
67 abcabc
68 xyzxyz
69 ** Failers
70 abcxyz
71 xyzabc
72
73 /(?|(abc)|(xyz))(?1)/
74 abcabc
75 xyzabc
76 ** Failers
77 xyzxyz
78
79 /^X(?5)(a)(?|(b)|(q))(c)(d)(Y)/
80 XYabcdY
81
82 /^X(?7)(a)(?|(b|(r)(s))|(q))(c)(d)(Y)/
83 XYabcdY
84
85 /^X(?7)(a)(?|(b|(?|(r)|(t))(s))|(q))(c)(d)(Y)/
86 XYabcdY
87
88 /(?'abc'\w+):\k<abc>{2}/
89 a:aaxyz
90 ab:ababxyz
91 ** Failers
92 a:axyz
93 ab:abxyz
94
95 /(?'abc'\w+):\g{abc}{2}/
96 a:aaxyz
97 ab:ababxyz
98 ** Failers
99 a:axyz
100 ab:abxyz
101
102 /^(?<ab>a)? (?(<ab>)b|c) (?('ab')d|e)/x
103 abd
104 ce
105
106 /^(a.)\g-1Z/
107 aXaXZ
108
109 /^(a.)\g{-1}Z/
110 aXaXZ
111
112 /^(?(DEFINE) (?<A> a) (?<B> b) ) (?&A) (?&B) /x
113 abcd
114
115 /(?<NAME>(?&NAME_PAT))\s+(?<ADDR>(?&ADDRESS_PAT))
116 (?(DEFINE)
117 (?<NAME_PAT>[a-z]+)
118 (?<ADDRESS_PAT>\d+)
119 )/x
120 metcalfe 33
121
122 /(?(DEFINE)(?<byte>2[0-4]\d|25[0-5]|1\d\d|[1-9]?\d))\b(?&byte)(\.(?&byte)){3}/
123 1.2.3.4
124 131.111.10.206
125 10.0.0.0
126 ** Failers
127 10.6
128 455.3.4.5
129
130 /\b(?&byte)(\.(?&byte)){3}(?(DEFINE)(?<byte>2[0-4]\d|25[0-5]|1\d\d|[1-9]?\d))/
131 1.2.3.4
132 131.111.10.206
133 10.0.0.0
134 ** Failers
135 10.6
136 455.3.4.5
137
138 /^(\w++|\s++)*$/
139 now is the time for all good men to come to the aid of the party
140 *** Failers
141 this is not a line with only words and spaces!
142
143 /(\d++)(\w)/
144 12345a
145 *** Failers
146 12345+
147
148 /a++b/
149 aaab
150
151 /(a++b)/
152 aaab
153
154 /(a++)b/
155 aaab
156
157 /([^()]++|\([^()]*\))+/
158 ((abc(ade)ufh()()x
159
160 /\(([^()]++|\([^()]+\))+\)/
161 (abc)
162 (abc(def)xyz)
163 *** Failers
164 ((()aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
165
166 /^([^()]|\((?1)*\))*$/
167 abc
168 a(b)c
169 a(b(c))d
170 *** Failers)
171 a(b(c)d
172
173 /^>abc>([^()]|\((?1)*\))*<xyz<$/
174 >abc>123<xyz<
175 >abc>1(2)3<xyz<
176 >abc>(1(2)3)<xyz<
177
178 /^(?:((.)(?1)\2|)|((.)(?3)\4|.))$/i
179 1221
180 Satanoscillatemymetallicsonatas
181 AmanaplanacanalPanama
182 AblewasIereIsawElba
183 *** Failers
184 Thequickbrownfox
185
186 /^(\d+|\((?1)([+*-])(?1)\)|-(?1))$/
187 12
188 (((2+2)*-3)-7)
189 -12
190 *** Failers
191 ((2+2)*-3)-7)
192
193 /^(x(y|(?1){2})z)/
194 xyz
195 xxyzxyzz
196 *** Failers
197 xxyzz
198 xxyzxyzxyzz
199
200 /((< (?: (?(R) \d++ | [^<>]*+) | (?2)) * >))/x
201 <>
202 <abcd>
203 <abc <123> hij>
204 <abc <def> hij>
205 <abc<>def>
206 <abc<>
207 *** Failers
208 <abc
209
210 /^a+(*FAIL)/
211 aaaaaa
212
213 /a+b?c+(*FAIL)/
214 aaabccc
215
216 /a+b?(*PRUNE)c+(*FAIL)/
217 aaabccc
218
219 /a+b?(*COMMIT)c+(*FAIL)/
220 aaabccc
221
222 /a+b?(*SKIP)c+(*FAIL)/
223 aaabcccaaabccc
224
225 /^(?:aaa(*THEN)\w{6}|bbb(*THEN)\w{5}|ccc(*THEN)\w{4}|\w{3})/
226 aaaxxxxxx
227 aaa++++++
228 bbbxxxxx
229 bbb+++++
230 cccxxxx
231 ccc++++
232 dddddddd
233
234 /^(aaa(*THEN)\w{6}|bbb(*THEN)\w{5}|ccc(*THEN)\w{4}|\w{3})/
235 aaaxxxxxx
236 aaa++++++
237 bbbxxxxx
238 bbb+++++
239 cccxxxx
240 ccc++++
241 dddddddd
242
243 /a+b?(*THEN)c+(*FAIL)/
244 aaabccc
245
246 /(A (A|B(*ACCEPT)|C) D)(E)/x
247 ABX
248 AADE
249 ACDE
250 ** Failers
251 AD
252
253 / End of testinput11 /

  ViewVC Help
Powered by ViewVC 1.1.5