forked from Emerald666/smartCalendar
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtimeRegexExplained.txt
240 lines (240 loc) · 26.8 KB
/
timeRegexExplained.txt
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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
// ^((\d{2}(([02468][048])|([13579][26]))[\-\/\s]?((((0?[13578])|(1[02]))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(3[01])))|(((0?[469])|(11))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(30)))|(0?2[\-\/\s]?((0?[1-9])|([1-2][0-9])))))|(\d{2}(([02468][1235679])|([13579][01345789]))[\-\/\s]?((((0?[13578])|(1[02]))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(3[01])))|(((0?[469])|(11))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(30)))|(0?2[\-\/\s]?((0?[1-9])|(1[0-9])|(2[0-8]))))))(\s(((0?[0-9])|(1[0-9])|(2[0-3]))\:([0-5][0-9])((\s)|(\:([0-5][0-9])))?))?$
//
// Assert position at the start of the string «^»
// Match the regular expression below and capture its match into backreference number 1 «((\d{2}(([02468][048])|([13579][26]))[\-\/\s]?((((0?[13578])|(1[02]))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(3[01])))|(((0?[469])|(11))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(30)))|(0?2[\-\/\s]?((0?[1-9])|([1-2][0-9])))))|(\d{2}(([02468][1235679])|([13579][01345789]))[\-\/\s]?((((0?[13578])|(1[02]))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(3[01])))|(((0?[469])|(11))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(30)))|(0?2[\-\/\s]?((0?[1-9])|(1[0-9])|(2[0-8]))))))»
// Match either the regular expression below (attempting the next alternative only if this one fails) «(\d{2}(([02468][048])|([13579][26]))[\-\/\s]?((((0?[13578])|(1[02]))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(3[01])))|(((0?[469])|(11))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(30)))|(0?2[\-\/\s]?((0?[1-9])|([1-2][0-9])))))»
// Match the regular expression below and capture its match into backreference number 2 «(\d{2}(([02468][048])|([13579][26]))[\-\/\s]?((((0?[13578])|(1[02]))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(3[01])))|(((0?[469])|(11))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(30)))|(0?2[\-\/\s]?((0?[1-9])|([1-2][0-9])))))»
// Match a single digit 0..9 «\d{2}»
// Exactly 2 times «{2}»
// Match the regular expression below and capture its match into backreference number 3 «(([02468][048])|([13579][26]))»
// Match either the regular expression below (attempting the next alternative only if this one fails) «([02468][048])»
// Match the regular expression below and capture its match into backreference number 4 «([02468][048])»
// Match a single character present in the list "02468" «[02468]»
// Match a single character present in the list "048" «[048]»
// Or match regular expression number 2 below (the entire group fails if this one fails to match) «([13579][26])»
// Match the regular expression below and capture its match into backreference number 5 «([13579][26])»
// Match a single character present in the list "13579" «[13579]»
// Match a single character present in the list "26" «[26]»
// Match a single character present in the list below «[\-\/\s]?»
// Between zero and one times, as many times as possible, giving back as needed (greedy) «?»
// A - character «\-»
// A / character «\/»
// Match a single character that is a "whitespace character" (spaces, tabs, line breaks, etc.) «\s»
// Match the regular expression below and capture its match into backreference number 6 «((((0?[13578])|(1[02]))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(3[01])))|(((0?[469])|(11))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(30)))|(0?2[\-\/\s]?((0?[1-9])|([1-2][0-9]))))»
// Match either the regular expression below (attempting the next alternative only if this one fails) «(((0?[13578])|(1[02]))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(3[01])))»
// Match the regular expression below and capture its match into backreference number 7 «(((0?[13578])|(1[02]))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(3[01])))»
// Match the regular expression below and capture its match into backreference number 8 «((0?[13578])|(1[02]))»
// Match either the regular expression below (attempting the next alternative only if this one fails) «(0?[13578])»
// Match the regular expression below and capture its match into backreference number 9 «(0?[13578])»
// Match the character "0" literally «0?»
// Between zero and one times, as many times as possible, giving back as needed (greedy) «?»
// Match a single character present in the list "13578" «[13578]»
// Or match regular expression number 2 below (the entire group fails if this one fails to match) «(1[02])»
// Match the regular expression below and capture its match into backreference number 10 «(1[02])»
// Match the character "1" literally «1»
// Match a single character present in the list "02" «[02]»
// Match a single character present in the list below «[\-\/\s]?»
// Between zero and one times, as many times as possible, giving back as needed (greedy) «?»
// A - character «\-»
// A / character «\/»
// Match a single character that is a "whitespace character" (spaces, tabs, line breaks, etc.) «\s»
// Match the regular expression below and capture its match into backreference number 11 «((0?[1-9])|([1-2][0-9])|(3[01]))»
// Match either the regular expression below (attempting the next alternative only if this one fails) «(0?[1-9])»
// Match the regular expression below and capture its match into backreference number 12 «(0?[1-9])»
// Match the character "0" literally «0?»
// Between zero and one times, as many times as possible, giving back as needed (greedy) «?»
// Match a single character in the range between "1" and "9" «[1-9]»
// Or match regular expression number 2 below (attempting the next alternative only if this one fails) «([1-2][0-9])»
// Match the regular expression below and capture its match into backreference number 13 «([1-2][0-9])»
// Match a single character in the range between "1" and "2" «[1-2]»
// Match a single character in the range between "0" and "9" «[0-9]»
// Or match regular expression number 3 below (the entire group fails if this one fails to match) «(3[01])»
// Match the regular expression below and capture its match into backreference number 14 «(3[01])»
// Match the character "3" literally «3»
// Match a single character present in the list "01" «[01]»
// Or match regular expression number 2 below (attempting the next alternative only if this one fails) «(((0?[469])|(11))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(30)))»
// Match the regular expression below and capture its match into backreference number 15 «(((0?[469])|(11))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(30)))»
// Match the regular expression below and capture its match into backreference number 16 «((0?[469])|(11))»
// Match either the regular expression below (attempting the next alternative only if this one fails) «(0?[469])»
// Match the regular expression below and capture its match into backreference number 17 «(0?[469])»
// Match the character "0" literally «0?»
// Between zero and one times, as many times as possible, giving back as needed (greedy) «?»
// Match a single character present in the list "469" «[469]»
// Or match regular expression number 2 below (the entire group fails if this one fails to match) «(11)»
// Match the regular expression below and capture its match into backreference number 18 «(11)»
// Match the characters "11" literally «11»
// Match a single character present in the list below «[\-\/\s]?»
// Between zero and one times, as many times as possible, giving back as needed (greedy) «?»
// A - character «\-»
// A / character «\/»
// Match a single character that is a "whitespace character" (spaces, tabs, line breaks, etc.) «\s»
// Match the regular expression below and capture its match into backreference number 19 «((0?[1-9])|([1-2][0-9])|(30))»
// Match either the regular expression below (attempting the next alternative only if this one fails) «(0?[1-9])»
// Match the regular expression below and capture its match into backreference number 20 «(0?[1-9])»
// Match the character "0" literally «0?»
// Between zero and one times, as many times as possible, giving back as needed (greedy) «?»
// Match a single character in the range between "1" and "9" «[1-9]»
// Or match regular expression number 2 below (attempting the next alternative only if this one fails) «([1-2][0-9])»
// Match the regular expression below and capture its match into backreference number 21 «([1-2][0-9])»
// Match a single character in the range between "1" and "2" «[1-2]»
// Match a single character in the range between "0" and "9" «[0-9]»
// Or match regular expression number 3 below (the entire group fails if this one fails to match) «(30)»
// Match the regular expression below and capture its match into backreference number 22 «(30)»
// Match the characters "30" literally «30»
// Or match regular expression number 3 below (the entire group fails if this one fails to match) «(0?2[\-\/\s]?((0?[1-9])|([1-2][0-9])))»
// Match the regular expression below and capture its match into backreference number 23 «(0?2[\-\/\s]?((0?[1-9])|([1-2][0-9])))»
// Match the character "0" literally «0?»
// Between zero and one times, as many times as possible, giving back as needed (greedy) «?»
// Match the character "2" literally «2»
// Match a single character present in the list below «[\-\/\s]?»
// Between zero and one times, as many times as possible, giving back as needed (greedy) «?»
// A - character «\-»
// A / character «\/»
// Match a single character that is a "whitespace character" (spaces, tabs, line breaks, etc.) «\s»
// Match the regular expression below and capture its match into backreference number 24 «((0?[1-9])|([1-2][0-9]))»
// Match either the regular expression below (attempting the next alternative only if this one fails) «(0?[1-9])»
// Match the regular expression below and capture its match into backreference number 25 «(0?[1-9])»
// Match the character "0" literally «0?»
// Between zero and one times, as many times as possible, giving back as needed (greedy) «?»
// Match a single character in the range between "1" and "9" «[1-9]»
// Or match regular expression number 2 below (the entire group fails if this one fails to match) «([1-2][0-9])»
// Match the regular expression below and capture its match into backreference number 26 «([1-2][0-9])»
// Match a single character in the range between "1" and "2" «[1-2]»
// Match a single character in the range between "0" and "9" «[0-9]»
// Or match regular expression number 2 below (the entire group fails if this one fails to match) «(\d{2}(([02468][1235679])|([13579][01345789]))[\-\/\s]?((((0?[13578])|(1[02]))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(3[01])))|(((0?[469])|(11))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(30)))|(0?2[\-\/\s]?((0?[1-9])|(1[0-9])|(2[0-8])))))»
// Match the regular expression below and capture its match into backreference number 27 «(\d{2}(([02468][1235679])|([13579][01345789]))[\-\/\s]?((((0?[13578])|(1[02]))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(3[01])))|(((0?[469])|(11))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(30)))|(0?2[\-\/\s]?((0?[1-9])|(1[0-9])|(2[0-8])))))»
// Match a single digit 0..9 «\d{2}»
// Exactly 2 times «{2}»
// Match the regular expression below and capture its match into backreference number 28 «(([02468][1235679])|([13579][01345789]))»
// Match either the regular expression below (attempting the next alternative only if this one fails) «([02468][1235679])»
// Match the regular expression below and capture its match into backreference number 29 «([02468][1235679])»
// Match a single character present in the list "02468" «[02468]»
// Match a single character present in the list "1235679" «[1235679]»
// Or match regular expression number 2 below (the entire group fails if this one fails to match) «([13579][01345789])»
// Match the regular expression below and capture its match into backreference number 30 «([13579][01345789])»
// Match a single character present in the list "13579" «[13579]»
// Match a single character present in the list "01345789" «[01345789]»
// Match a single character present in the list below «[\-\/\s]?»
// Between zero and one times, as many times as possible, giving back as needed (greedy) «?»
// A - character «\-»
// A / character «\/»
// Match a single character that is a "whitespace character" (spaces, tabs, line breaks, etc.) «\s»
// Match the regular expression below and capture its match into backreference number 31 «((((0?[13578])|(1[02]))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(3[01])))|(((0?[469])|(11))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(30)))|(0?2[\-\/\s]?((0?[1-9])|(1[0-9])|(2[0-8]))))»
// Match either the regular expression below (attempting the next alternative only if this one fails) «(((0?[13578])|(1[02]))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(3[01])))»
// Match the regular expression below and capture its match into backreference number 32 «(((0?[13578])|(1[02]))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(3[01])))»
// Match the regular expression below and capture its match into backreference number 33 «((0?[13578])|(1[02]))»
// Match either the regular expression below (attempting the next alternative only if this one fails) «(0?[13578])»
// Match the regular expression below and capture its match into backreference number 34 «(0?[13578])»
// Match the character "0" literally «0?»
// Between zero and one times, as many times as possible, giving back as needed (greedy) «?»
// Match a single character present in the list "13578" «[13578]»
// Or match regular expression number 2 below (the entire group fails if this one fails to match) «(1[02])»
// Match the regular expression below and capture its match into backreference number 35 «(1[02])»
// Match the character "1" literally «1»
// Match a single character present in the list "02" «[02]»
// Match a single character present in the list below «[\-\/\s]?»
// Between zero and one times, as many times as possible, giving back as needed (greedy) «?»
// A - character «\-»
// A / character «\/»
// Match a single character that is a "whitespace character" (spaces, tabs, line breaks, etc.) «\s»
// Match the regular expression below and capture its match into backreference number 36 «((0?[1-9])|([1-2][0-9])|(3[01]))»
// Match either the regular expression below (attempting the next alternative only if this one fails) «(0?[1-9])»
// Match the regular expression below and capture its match into backreference number 37 «(0?[1-9])»
// Match the character "0" literally «0?»
// Between zero and one times, as many times as possible, giving back as needed (greedy) «?»
// Match a single character in the range between "1" and "9" «[1-9]»
// Or match regular expression number 2 below (attempting the next alternative only if this one fails) «([1-2][0-9])»
// Match the regular expression below and capture its match into backreference number 38 «([1-2][0-9])»
// Match a single character in the range between "1" and "2" «[1-2]»
// Match a single character in the range between "0" and "9" «[0-9]»
// Or match regular expression number 3 below (the entire group fails if this one fails to match) «(3[01])»
// Match the regular expression below and capture its match into backreference number 39 «(3[01])»
// Match the character "3" literally «3»
// Match a single character present in the list "01" «[01]»
// Or match regular expression number 2 below (attempting the next alternative only if this one fails) «(((0?[469])|(11))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(30)))»
// Match the regular expression below and capture its match into backreference number 40 «(((0?[469])|(11))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(30)))»
// Match the regular expression below and capture its match into backreference number 41 «((0?[469])|(11))»
// Match either the regular expression below (attempting the next alternative only if this one fails) «(0?[469])»
// Match the regular expression below and capture its match into backreference number 42 «(0?[469])»
// Match the character "0" literally «0?»
// Between zero and one times, as many times as possible, giving back as needed (greedy) «?»
// Match a single character present in the list "469" «[469]»
// Or match regular expression number 2 below (the entire group fails if this one fails to match) «(11)»
// Match the regular expression below and capture its match into backreference number 43 «(11)»
// Match the characters "11" literally «11»
// Match a single character present in the list below «[\-\/\s]?»
// Between zero and one times, as many times as possible, giving back as needed (greedy) «?»
// A - character «\-»
// A / character «\/»
// Match a single character that is a "whitespace character" (spaces, tabs, line breaks, etc.) «\s»
// Match the regular expression below and capture its match into backreference number 44 «((0?[1-9])|([1-2][0-9])|(30))»
// Match either the regular expression below (attempting the next alternative only if this one fails) «(0?[1-9])»
// Match the regular expression below and capture its match into backreference number 45 «(0?[1-9])»
// Match the character "0" literally «0?»
// Between zero and one times, as many times as possible, giving back as needed (greedy) «?»
// Match a single character in the range between "1" and "9" «[1-9]»
// Or match regular expression number 2 below (attempting the next alternative only if this one fails) «([1-2][0-9])»
// Match the regular expression below and capture its match into backreference number 46 «([1-2][0-9])»
// Match a single character in the range between "1" and "2" «[1-2]»
// Match a single character in the range between "0" and "9" «[0-9]»
// Or match regular expression number 3 below (the entire group fails if this one fails to match) «(30)»
// Match the regular expression below and capture its match into backreference number 47 «(30)»
// Match the characters "30" literally «30»
// Or match regular expression number 3 below (the entire group fails if this one fails to match) «(0?2[\-\/\s]?((0?[1-9])|(1[0-9])|(2[0-8])))»
// Match the regular expression below and capture its match into backreference number 48 «(0?2[\-\/\s]?((0?[1-9])|(1[0-9])|(2[0-8])))»
// Match the character "0" literally «0?»
// Between zero and one times, as many times as possible, giving back as needed (greedy) «?»
// Match the character "2" literally «2»
// Match a single character present in the list below «[\-\/\s]?»
// Between zero and one times, as many times as possible, giving back as needed (greedy) «?»
// A - character «\-»
// A / character «\/»
// Match a single character that is a "whitespace character" (spaces, tabs, line breaks, etc.) «\s»
// Match the regular expression below and capture its match into backreference number 49 «((0?[1-9])|(1[0-9])|(2[0-8]))»
// Match either the regular expression below (attempting the next alternative only if this one fails) «(0?[1-9])»
// Match the regular expression below and capture its match into backreference number 50 «(0?[1-9])»
// Match the character "0" literally «0?»
// Between zero and one times, as many times as possible, giving back as needed (greedy) «?»
// Match a single character in the range between "1" and "9" «[1-9]»
// Or match regular expression number 2 below (attempting the next alternative only if this one fails) «(1[0-9])»
// Match the regular expression below and capture its match into backreference number 51 «(1[0-9])»
// Match the character "1" literally «1»
// Match a single character in the range between "0" and "9" «[0-9]»
// Or match regular expression number 3 below (the entire group fails if this one fails to match) «(2[0-8])»
// Match the regular expression below and capture its match into backreference number 52 «(2[0-8])»
// Match the character "2" literally «2»
// Match a single character in the range between "0" and "8" «[0-8]»
// Match the regular expression below and capture its match into backreference number 53 «(\s(((0?[0-9])|(1[0-9])|(2[0-3]))\:([0-5][0-9])((\s)|(\:([0-5][0-9])))?))?»
// Between zero and one times, as many times as possible, giving back as needed (greedy) «?»
// Match a single character that is a "whitespace character" (spaces, tabs, line breaks, etc.) «\s»
// Match the regular expression below and capture its match into backreference number 54 «(((0?[0-9])|(1[0-9])|(2[0-3]))\:([0-5][0-9])((\s)|(\:([0-5][0-9])))?)»
// Match the regular expression below and capture its match into backreference number 55 «((0?[0-9])|(1[0-9])|(2[0-3]))»
// Match either the regular expression below (attempting the next alternative only if this one fails) «(0?[0-9])»
// Match the regular expression below and capture its match into backreference number 56 «(0?[0-9])»
// Match the character "0" literally «0?»
// Between zero and one times, as many times as possible, giving back as needed (greedy) «?»
// Match a single character in the range between "0" and "9" «[0-9]»
// Or match regular expression number 2 below (attempting the next alternative only if this one fails) «(1[0-9])»
// Match the regular expression below and capture its match into backreference number 57 «(1[0-9])»
// Match the character "1" literally «1»
// Match a single character in the range between "0" and "9" «[0-9]»
// Or match regular expression number 3 below (the entire group fails if this one fails to match) «(2[0-3])»
// Match the regular expression below and capture its match into backreference number 58 «(2[0-3])»
// Match the character "2" literally «2»
// Match a single character in the range between "0" and "3" «[0-3]»
// Match the character ":" literally «\:»
// Match the regular expression below and capture its match into backreference number 59 «([0-5][0-9])»
// Match a single character in the range between "0" and "5" «[0-5]»
// Match a single character in the range between "0" and "9" «[0-9]»
// Match the regular expression below and capture its match into backreference number 60 «((\s)|(\:([0-5][0-9])))?»
// Between zero and one times, as many times as possible, giving back as needed (greedy) «?»
// Match either the regular expression below (attempting the next alternative only if this one fails) «(\s)»
// Match the regular expression below and capture its match into backreference number 61 «(\s)»
// Match a single character that is a "whitespace character" (spaces, tabs, line breaks, etc.) «\s»
// Or match regular expression number 2 below (the entire group fails if this one fails to match) «(\:([0-5][0-9]))»
// Match the regular expression below and capture its match into backreference number 62 «(\:([0-5][0-9]))»
// Match the character ":" literally «\:»
// Match the regular expression below and capture its match into backreference number 63 «([0-5][0-9])»
// Match a single character in the range between "0" and "5" «[0-5]»
// Match a single character in the range between "0" and "9" «[0-9]»
// Assert position at the end of the string (or before the line break at the end of the string, if any) «$»