1 NOTE all standard compliant implementations should pass these
: 2002-05-31
3 BE abracadabra$ abracadabracadabra
(7,18)
4 BE a...b abababbb
(2,7)
5 BE XXXXXX ..XXXXXX
(2,8)
23 E a
*(^a
) aa
(0,1)(0,1)
25 E
(..
)*(...
)* abcd
(0,4)(2,4)
26 E
(ab|a
)(bc|c
) abc
(0,3)(0,2)(2,3)
27 E
(ab
)c|abc abc
(0,3)(0,2)
29 E
(a
*)(b?
)(b
+)b
{3} aaabbbbbbb
(0,10)(0,3)(3,4)(4,7)
30 E
(a
*)(b
{0,1})(b
{1,})b
{3} aaabbbbbbb
(0,10)(0,3)(3,4)(4,7)
31 E a
{9876543210} NULL BADBR
32 E
((a|a
)|a
) a
(0,1)(0,1)(0,1)
33 E
(a
*)(a|aa
) aaaa
(0,4)(0,3)(3,4)
34 E a
*(a.|aa
) aaaa
(0,4)(2,4)
35 E a
(b
)|c
(d
)|a
(e
)f aef
(0,3)(?
,?
)(?
,?
)(1,2)
36 E
(a|b
)?.
* b
(0,1)(0,1)
37 E
(a|b
)c|a
(b|c
) ac
(0,2)(0,1)
38 E
(a|b
)c|a
(b|c
) ab
(0,2)(?
,?
)(1,2)
39 E
(a|b
)*c|
(a|ab
)*c abc
(0,3)(1,2)
40 E
(a|b
)*c|
(a|ab
)*c xc
(1,2)
41 E
(.a|.b
).
*|.
*(.a|.b
) xa
(0,2)(0,2)
42 E a?
(ab|ba
)ab abab
(0,4)(0,2)
43 E a?
(ac
{0}b|ba
)ab abab
(0,4)(0,2)
44 E ab|abab abbabab
(0,2)
45 E aba|bab|bba baaabbbaba
(5,8)
46 E aba|bab baaabbbaba
(6,9)
47 E
(aa|aaa
)*|
(a|aaaaa
) aa
(0,2)(0,2)
48 E
(a.|.a.
)*|
(a|.a...
) aa
(0,2)(0,2)
51 Ei
(Ab|cD
)* aBcD
(0,4)(2,4)
54 BE
[a
-m
-]* --amoma
-- (0,4)
55 E
:::1:::0:|
:::1:1:0: :::0:::1:::1:::0: (8,17)
56 E
:::1:::0:|
:::1:1:1: :::0:::1:::1:::0: (8,17)
57 {E
[[:upper
:]] A
(0,1) [[<element
>]] not supported
58 E
[[:lower
:]]+ `az
{ (1,3)
59 E
[[:upper
:]]+ @AZ
[ (1,3)
61 BE
[[.NIL.
]] NULL ECOLLATE
62 BE
[[=aleph
=]] NULL ECOLLATE
68 E
(a
)(b
)(c
) abc
(0,3)(0,1)(1,2)(2,3)
70 E1
(^|
[ (,;])((([Ff
]eb
[^
]* *|
0*2/|\
* */?
)0*[6-7]))([^
0-9]|$
) feb
6, (0,6)
71 E1
(^|
[ (,;])((([Ff
]eb
[^
]* *|
0*2/|\
* */?
)0*[6-7]))([^
0-9]|$
) 2/7 (0,3)
72 E1
(^|
[ (,;])((([Ff
]eb
[^
]* *|
0*2/|\
* */?
)0*[6-7]))([^
0-9]|$
) feb
1,Feb
6 (5,11)
73 E3
((((((((((((((((((((((((((((((x
)))))))))))))))))))))))))))))) x
(0,1)(0,1)(0,1)
74 E3
((((((((((((((((((((((((((((((x
))))))))))))))))))))))))))))))* xx
(0,2)(1,2)(1,2)
75 E a?
(ab|ba
)* ababababababababababababababababababababababababababababababababababababababababa
(0,81)(79,81)
76 E abaa|abbaa|abbbaa|abbbbaa ababbabbbabbbabbbbabbbbaa
(18,25)
77 E abaa|abbaa|abbbaa|abbbbaa ababbabbbabbbabbbbabaa
(18,22)
78 E aaac|aabc|abac|abbc|baac|babc|bbac|bbbc baaabbbabac
(7,11)
80 E aaaa|bbbb|cccc|ddddd|eeeeee|fffffff|gggg|hhhh|iiiii|jjjjj|kkkkk|llll XaaaXbbbXcccXdddXeeeXfffXgggXhhhXiiiXjjjXkkkXlllXcbaXaaaa
(53,57)
81 L aaaa
\nbbbb
\ncccc
\nddddd
\neeeeee
\nfffffff
\ngggg
\nhhhh
\niiiii
\njjjjj
\nkkkkk
\nllll XaaaXbbbXcccXdddXeeeXfffXgggXhhhXiiiXjjjXkkkXlllXcbaXaaaa NOMATCH
82 E a
*a
*a
*a
*a
*b aaaaaaaaab
(0,10)
122 E
((a
)) abc
(0,1)(0,1)(0,1)
123 E
(a
)b
(c
) abc
(0,3)(0,1)(2,3)
124 E a
+b
+c aabbabc
(4,7)
128 E
(a
*|b
)* - (0,0)(0,0)
129 E
(a
+|b
)* ab
(0,2)(1,2)
130 E
(a
+|b
)+ ab
(0,2)(1,2)
131 E
(a
+|b
)? ab
(0,1)(0,1)
135 E
([abc
])*d abbbcd
(0,6)(4,5)
136 E
([abc
])*bcd abcd
(0,4)(0,1)
138 E
(a|b|c|d|e
)f ef
(0,2)(0,1)
139 E
((a
*|b
))* - (0,0)(0,0)(0,0)
140 BE abcd
*efg abcdefg
(0,7)
141 BE ab
* xabyabbbz
(1,3)
142 BE ab
* xayabbbz
(1,2)
143 E
(ab|cd
)e abcde
(2,5)(2,4)
144 BE
[abhgefdc
]ij hij
(0,3)
145 E
(a|b
)c
*d abcd
(1,4)(1,2)
146 E
(ab|ab
*)bc abc
(0,3)(0,1)
147 E a
([bc
]*)c
* abc
(0,3)(1,3)
148 E a
([bc
]*)(c
*d
) abcd
(0,4)(1,3)(3,4)
149 E a
([bc
]+)(c
*d
) abcd
(0,4)(1,3)(3,4)
150 E a
([bc
]*)(c
+d
) abcd
(0,4)(1,2)(2,4)
151 E a
[bcd
]*dcdcde adcdcde
(0,7)
152 E
(ab|a
)b
*c abc
(0,3)(0,2)
153 E
((a
)(b
)c
)(d
) abcd
(0,4)(0,3)(0,1)(1,2)(3,4)
154 BE
[A
-Za
-z_
][A
-Za
-z0
-9_
]* alpha
(0,5)
155 E ^a
(bc
+|b
[eh
])g|.h$ abh
(1,3)
156 E
(bc
+d$|ef
*g.|h?i
(j|k
)) effgz
(0,5)(0,5)
157 E
(bc
+d$|ef
*g.|h?i
(j|k
)) ij
(0,2)(0,2)(1,2)
158 E
(bc
+d$|ef
*g.|h?i
(j|k
)) reffgz
(1,6)(1,6)
159 E
(((((((((a
))))))))) a
(0,1)(0,1)(0,1)(0,1)(0,1)(0,1)(0,1)(0,1)(0,1)(0,1)
160 BE multiple words multiple words yeah
(0,14)
161 E
(.
*)c
(.
*) abcde
(0,5)(0,2)(3,5)
163 E a
(bc
)d abcd
(0,4)(1,3)
165 E M
[ou
]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy] Muammar Qaddafi (0,15)(?,?)(10,12)
166 E M[ou]'?am
+[ae
]r .
*([AEae
]l
[- ])?
[GKQ
]h?
[aeu
]+([dtz
][dhz
]?
)+af
[iy
] Mo
'ammar Gadhafi (0,16)(?,?)(11,13)
167 E M[ou]'?am
+[ae
]r .
*([AEae
]l
[- ])?
[GKQ
]h?
[aeu
]+([dtz
][dhz
]?
)+af
[iy
] Muammar Kaddafi
(0,15)(?
,?
)(10,12)
168 E M
[ou
]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy] Muammar Qadhafi (0,15)(?,?)(10,12)
169 E M[ou]'?am
+[ae
]r .
*([AEae
]l
[- ])?
[GKQ
]h?
[aeu
]+([dtz
][dhz
]?
)+af
[iy
] Muammar Gadafi
(0,14)(?
,?
)(10,11)
170 E M
[ou
]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy] Mu'ammar Qadafi
(0,15)(?
,?
)(11,12)
171 E M
[ou
]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy] Moamar Gaddafi (0,14)(?,?)(9,11)
172 E M[ou]'?am
+[ae
]r .
*([AEae
]l
[- ])?
[GKQ
]h?
[aeu
]+([dtz
][dhz
]?
)+af
[iy
] Mu
'ammar Qadhdhafi (0,18)(?,?)(13,15)
173 E M[ou]'?am
+[ae
]r .
*([AEae
]l
[- ])?
[GKQ
]h?
[aeu
]+([dtz
][dhz
]?
)+af
[iy
] Muammar Khaddafi
(0,16)(?
,?
)(11,13)
174 E M
[ou
]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy] Muammar Ghaddafy (0,16)(?,?)(11,13)
175 E M[ou]'?am
+[ae
]r .
*([AEae
]l
[- ])?
[GKQ
]h?
[aeu
]+([dtz
][dhz
]?
)+af
[iy
] Muammar Ghadafi
(0,15)(?
,?
)(11,12)
176 E M
[ou
]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy] Muammar Ghaddafi (0,16)(?,?)(11,13)
177 E M[ou]'?am
+[ae
]r .
*([AEae
]l
[- ])?
[GKQ
]h?
[aeu
]+([dtz
][dhz
]?
)+af
[iy
] Muamar Kaddafi
(0,14)(?
,?
)(9,11)
178 E M
[ou
]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy] Muammar Quathafi (0,16)(?,?)(11,13)
179 E M[ou]'?am
+[ae
]r .
*([AEae
]l
[- ])?
[GKQ
]h?
[aeu
]+([dtz
][dhz
]?
)+af
[iy
] Muammar Gheddafi
(0,16)(?
,?
)(11,13)
180 E M
[ou
]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy] Moammar Khadafy (0,15)(?,?)(11,12)
181 E M[ou]'?am
+[ae
]r .
*([AEae
]l
[- ])?
[GKQ
]h?
[aeu
]+([dtz
][dhz
]?
)+af
[iy
] Moammar Qudhafi
(0,15)(?
,?
)(10,12)
182 E a
+(b|c
)*d
+ aabcdd
(0,6)(3,4)
184 E ^
(.
+)$ vivi
(0,4)(0,4)
185 E ^
([^
!.
]+).att.com
!(.
+)$ gryphon.att.com
!eby
(0,19)(0,7)(16,19)
186 E ^
([^
!]+!)?
([^
!]+)$ bas
(0,3)(?
,?
)(0,3)
187 E ^
([^
!]+!)?
([^
!]+)$ bar
!bas
(0,7)(0,4)(4,7)
188 E ^
([^
!]+!)?
([^
!]+)$ foo
!bas
(0,7)(0,4)(4,7)
189 E ^.
+!([^
!]+!)([^
!]+)$ foo
!bar
!bas
(0,11)(4,8)(8,11)
190 E
((foo
)|
(bar
))!bas bar
!bas
(0,7)(0,3)(?
,?
)(0,3)
191 E
((foo
)|
(bar
))!bas foo
!bar
!bas
(4,11)(4,7)(?
,?
)(4,7)
192 E
((foo
)|
(bar
))!bas foo
!bas
(0,7)(0,3)(0,3)
193 E
((foo
)|bar
)!bas bar
!bas
(0,7)(0,3)
194 E
((foo
)|bar
)!bas foo
!bar
!bas
(4,11)(4,7)
195 E
((foo
)|bar
)!bas foo
!bas
(0,7)(0,3)(0,3)
196 E
(foo|
(bar
))!bas bar
!bas
(0,7)(0,3)(0,3)
197 E
(foo|
(bar
))!bas foo
!bar
!bas
(4,11)(4,7)(4,7)
198 E
(foo|
(bar
))!bas foo
!bas
(0,7)(0,3)
199 E
(foo|bar
)!bas bar
!bas
(0,7)(0,3)
200 E
(foo|bar
)!bas foo
!bar
!bas
(4,11)(4,7)
201 E
(foo|bar
)!bas foo
!bas
(0,7)(0,3)
202 E ^
(([^
!]+!)?
([^
!]+)|.
+!([^
!]+!)([^
!]+))$ foo
!bar
!bas
(0,11)(0,11)(?
,?
)(?
,?
)(4,8)(8,11)
203 E ^
([^
!]+!)?
([^
!]+)$|^.
+!([^
!]+!)([^
!]+)$ bas
(0,3)(?
,?
)(0,3)
204 E ^
([^
!]+!)?
([^
!]+)$|^.
+!([^
!]+!)([^
!]+)$ bar
!bas
(0,7)(0,4)(4,7)
205 E ^
([^
!]+!)?
([^
!]+)$|^.
+!([^
!]+!)([^
!]+)$ foo
!bar
!bas
(0,11)(?
,?
)(?
,?
)(4,8)(8,11)
206 E ^
([^
!]+!)?
([^
!]+)$|^.
+!([^
!]+!)([^
!]+)$ foo
!bas
(0,7)(0,4)(4,7)
207 E ^
(([^
!]+!)?
([^
!]+)|.
+!([^
!]+!)([^
!]+))$ bas
(0,3)(0,3)(?
,?
)(0,3)
208 E ^
(([^
!]+!)?
([^
!]+)|.
+!([^
!]+!)([^
!]+))$ bar
!bas
(0,7)(0,7)(0,4)(4,7)
209 E ^
(([^
!]+!)?
([^
!]+)|.
+!([^
!]+!)([^
!]+))$ foo
!bar
!bas
(0,11)(0,11)(?
,?
)(?
,?
)(4,8)(8,11)
210 E ^
(([^
!]+!)?
([^
!]+)|.
+!([^
!]+!)([^
!]+))$ foo
!bas
(0,7)(0,7)(0,4)(4,7)
211 E .
*(/XXX
).
* /XXX
(0,4)(0,4)
212 E .
*(\\XXX
).
* \XXX
(0,4)(0,4)
214 E .
*(/000).
* /000 (0,4)(0,4)
215 E .
*(\\000).
* \000 (0,4)(0,4)