1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
|
[[tests]]
name = "crazy-misc1"
pattern = '[-+]?[0-9]*\.?[0-9]+'
input = "0.1"
matches = [[0, 3]]
[[tests]]
name = "crazy-misc2"
pattern = '[-+]?[0-9]*\.?[0-9]+'
input = "0.1.2"
matches = [[0, 3]]
[[tests]]
name = "crazy-misc3"
pattern = '[-+]?[0-9]*\.?[0-9]+'
input = "a1.2"
matches = [[1, 4]]
[[tests]]
options = ["case-insensitive"]
name = "crazy-misc4"
pattern = '[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}'
input = "mine is jam.slam@gmail.com "
matches = [[8, 26]]
[[tests]]
options = ["case-insensitive"]
name = "crazy-misc5"
pattern = '[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}'
input = "mine is jam.slam@gmail "
matches = []
[[tests]]
name = "crazy-misc6"
pattern = '''[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?'''
input = "mine is jam.slam@gmail.com "
matches = [[8, 26]]
[[tests]]
name = "crazy-misc7"
pattern = '(19|20)\d\d[- /.](0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])'
input = "1900-01-01"
matches = [[0, 10]]
[[tests]]
name = "crazy-misc8"
pattern = '(19|20)\d\d[- /.](0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])'
input = "1900-00-01"
matches = []
[[tests]]
name = "crazy-misc9"
pattern = '(19|20)\d\d[- /.](0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])'
input = "1900-13-01"
matches = []
[[tests]]
name = "crazy-negclass1"
pattern = "[^ac]"
input = "acx"
matches = [[2, 3]]
[[tests]]
name = "crazy-negclass2"
pattern = "[^a,]"
input = "a,x"
matches = [[2, 3]]
[[tests]]
name = "crazy-negclass3"
pattern = '[^a\s]'
input = "a x"
matches = [[2, 3]]
[[tests]]
name = "crazy-negclass4"
pattern = "[^,]"
input = ",,x"
matches = [[2, 3]]
[[tests]]
name = "crazy-negclass5"
pattern = '[^\s]'
input = " a"
matches = [[1, 2]]
[[tests]]
name = "crazy-negclass6"
pattern = '[^,\s]'
input = ", a"
matches = [[2, 3]]
[[tests]]
name = "crazy-negclass7"
pattern = '[^\s,]'
input = " ,a"
matches = [[2, 3]]
[[tests]]
name = "crazy-negclass8"
pattern = "[^[:alpha:]Z]"
input = "A1"
matches = [[1, 2]]
[[tests]]
name = "crazy-empty-repeat1"
pattern = "((.*)*?)="
input = "a=b"
matches = [[0, 2]]
[[tests]]
name = "crazy-empty-repeat2"
pattern = "((.?)*?)="
input = "a=b"
matches = [[0, 2]]
[[tests]]
name = "crazy-empty-repeat3"
pattern = "((.*)+?)="
input = "a=b"
matches = [[0, 2]]
[[tests]]
name = "crazy-empty-repeat4"
pattern = "((.?)+?)="
input = "a=b"
matches = [[0, 2]]
[[tests]]
name = "crazy-empty-repeat5"
pattern = "((.*){1,}?)="
input = "a=b"
matches = [[0, 2]]
[[tests]]
name = "crazy-empty-repeat6"
pattern = "((.*){1,2}?)="
input = "a=b"
matches = [[0, 2]]
[[tests]]
name = "crazy-empty-repeat7"
pattern = "((.*)*)="
input = "a=b"
matches = [[0, 2]]
[[tests]]
name = "crazy-empty-repeat8"
pattern = "((.?)*)="
input = "a=b"
matches = [[0, 2]]
[[tests]]
name = "crazy-empty-repeat9"
pattern = "((.*)+)="
input = "a=b"
matches = [[0, 2]]
[[tests]]
name = "crazy-empty-repeat10"
pattern = "((.?)+)="
input = "a=b"
matches = [[0, 2]]
[[tests]]
name = "crazy-empty-repeat11"
pattern = "((.*){1,})="
input = "a=b"
matches = [[0, 2]]
[[tests]]
name = "crazy-empty-repeat12"
pattern = "((.*){1,2})="
input = "a=b"
matches = [[0, 2]]
|