-
Notifications
You must be signed in to change notification settings - Fork 27
/
patterns.json
437 lines (437 loc) Β· 18.7 KB
/
patterns.json
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
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
[{
"name":"Date/Time, Date DD/MM/YYY",
"regex":"(0?[1-9]|[12][0-9]|3[01])([ /-])(0?[1-9]|1[012])\\2([0-9][0-9][0-9][0-9])(([ -])([0-1]?[0-9]|2[0-3]):([0-5]?[0-9]):[0-5]?[0-9])?",
"description":"Will match dates with dashes, slashes or with spaces (e.g. <code>dd-mm-yyyy</code> <code>dd/mm/yyyy</code> <code>dd mm yyyy</code>), and optional time separated by a space or a dash (e.g. <code>dd-mm-yyyy-hh:mm:ss</code> or <code>dd/mm/yyyy hh:mm:ss</code>).",
"tags":"date,time",
"source":"https://projects.lukehaas.me/regexhub"
},
{
"name":"Date/Time, Date MM/DD/YYYY",
"regex":"(0?[1-9]|1[012])([ /-])(0?[1-9]|[12][0-9]|3[01])\\2([0-9][0-9][0-9][0-9])(([ -])([0-1]?[0-9]|2[0-3]):([0-5]?[0-9])(?::([0-5]?[0-9])))?",
"description":"Will match dates with dashes, slashes or with spaces (e.g. <code>mm-dd-yyyy</code> <code>mm/dd/yyyy</code> <code>mm dd yyyy</code>), and optional time separated by a space or a dash (e.g. <code>mm-dd-yyyy-hh:mm:ss</code> or <code>mm/dd/yyyy hh:mm:ss</code>).",
"tags":"date,time"
},
{
"name":"Date/Time, Time in 24-hour format",
"regex":"([01]?[0-9]|2[0-3]):([0-5][0-9]):?([0-5][0-9])?",
"description": "Match times in 24 hour format.",
"tags":"date,time",
"source":"https://projects.lukehaas.me/regexhub"
},
{
"name":"Date/Time, Time ISO-8601",
"regex":"(?![+-]?\\d{4,5}-?(?:\\d{2}|W\\d{2})T)(?:|(\\d{4}|[+-]\\d{5})-?(?:|(0\\d|1[0-2])(?:|-?([0-2]\\d|3[0-1]))|([0-2]\\d{2}|3[0-5]\\d|36[0-6])|W([0-4]\\d|5[0-3])(?:|-?([1-7])))(?:(?!\\d)|T(?=\\d)))(?:|([01]\\d|2[0-4])(?:|:?([0-5]\\d)(?:|:?([0-5]\\d)(?:|\\.(\\d{3})))(?:|[zZ]|([+-](?:[01]\\d|2[0-4]))(?:|:?([0-5]\\d)))))",
"description": "Will match a valid date and times in the <a href=\"https://www.iso.org/iso-8601-date-and-time-format.html\">ISO-8601 format</a>, excludes durations. Requires Perl.",
"tags": "date,time",
"source":"https://projects.lukehaas.me/regexhub"
},
{
"name":"Web, HTML tags",
"regex":"<([a-z1-6]+)([^<]+)*(?:>(.*)</\\1>| */>)",
"description":"Match opening and closing HTML tags with content between.",
"tags":"markup,xml,html",
"source":"https://projects.lukehaas.me/regexhub"
},
{
"name":"Web, Username",
"regex":"[a-zA-Z0-9_-]{3,16}",
"description":"A string between 3 and 16 characters, allowing alphanumeric characters and hyphens and underscores.",
"tags":"username,validation",
"source":"https://projects.lukehaas.me/regexhub"
},
{
"name":"Hex Color Value",
"regex":"#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})\\b",
"description":"Detect RGB hex colors.",
"tags":"hex,color",
"source":"https://projects.lukehaas.me/regexhub"
},
{
"name":"Web, URL Slug",
"regex":"[[:alnum:]-]+",
"description":"Match valid URL slugs.",
"tags":"URL",
"source":"https://projects.lukehaas.me/regexhub"
},
{
"name":"Web, Email",
"regex":"([[:alnum:]_.-]+)@([[:alnum:].-]+)\\.([[:alpha:].]{2,6})",
"description":"Simple (but imperfect) email validation.",
"tags":"email,validation"
},
{
"name":"Web, Image Source Path",
"regex":"<\\s*img[^>]+src\\s*=\\s*([\"'])(.*?)\\1[^>]*>",
"description":"Match the src attribute of an HTML image tag.",
"tags":"html,tag,image",
"source":"https://projects.lukehaas.me/regexhub"
},
{
"name":"Web, URL Simple",
"regex":"((https?|ftp|file)://)?([\\w\\d.-]+)\\.([a-zA-Z.]{2,6})([-/.a-zA-Z0-9]+)*/?",
"description":"Match URL with optional protocol, e.g. <code>yahoo.com</code> or <code>https://yahoo.com/finance</code>. (Validation only, may have high false positives.)",
"tags":"url,address,http",
"source":"https://projects.lukehaas.me/regexhub"
},
{
"name":"Web, URL Extended",
"regex":"(?:(?:http(?:s)?|ftp)://)(?:\\S+(?::(?:\\S)*)?@)?(?:(?:[a-z0-9\\u00a1-\\uffff](?:-)*)*(?:[a-z0-9\\u00a1-\\uffff])+)(?:\\.(?:[a-z0-9\\u00a1-\\uffff](?:-)*)*(?:[a-z0-9\\u00a1-\\uffff])+)*(?:\\.(?:[a-z0-9\\u00a1-\\uffff]){2,})(?::(?:\\d){2,5})?(?:/(?:\\S)*)?",
"description":"More complicated URL validation that handles fully-qualified URLs such as <code>http://www.example.com/wpstyle/?p=364</code>, <code>http://foo.com/blah_blah_(wikipedia)_(again)</code>, or even <code>http://userid:[email protected]:8080/</code>.",
"tags":"url,address,http",
"source":"http://rpubs.com/jimhester/rex-url_parsing"
},
{
"name":"Network, IPv4 Address",
"regex":"(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",
"description":"Match IP v4 addresses, e.g. <code>98.139.180.149</code>.",
"tags":"tcpip,internet,address",
"source":"https://projects.lukehaas.me/regexhub"
},
{
"name":"Network, IPv6 Address",
"regex":"(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))",
"description": "Match IP v6 addresses, e.g. <code>2002:4559:1FE2::4559:1FE2</code>.",
"tags":"tcpip,internet,address"
},
{
"name":"Web, JSON Web Token",
"regex":"[A-Za-z0-9-_=]+\\.[A-Za-z0-9-_=]+\\.?[A-Za-z0-9-_.+/=]*",
"description": "JSON Web Token (encoded).",
"tags":"www",
"source":"https://projects.lukehaas.me/regexhub"
},
{
"name":"Number, Positive Integer",
"regex":"\\d+",
"description":"Match whole numbers above zero.",
"tags":"number",
"source":"https://projects.lukehaas.me/regexhub"
},
{
"name":"Number, Negative Integer",
"regex":"-\\d+",
"description":"Match whole numbers below zero.",
"tags":"number",
"source":"https://projects.lukehaas.me/regexhub"
},
{
"name":"Number, Integer",
"regex":"-?\\d+",
"description":"Match whole numbers, above or below zero.",
"tags":"number",
"source":"https://projects.lukehaas.me/regexhub"
},
{
"name":"Number, Positive (integer or float)",
"regex":"\\d*\\.?\\d+",
"description":"Match integers or floats that are positive.",
"tags":"float",
"source":"https://projects.lukehaas.me/regexhub"
},
{
"name":"Number, Negative (integer or float)",
"regex":"-\\d*\\.?\\d+",
"description":"Match integers or floats that are negative.",
"tags":"float",
"source":"https://projects.lukehaas.me/regexhub"
},
{
"name":"Number, Integer or Float",
"regex":"-?\\d*\\.?\\d+",
"description":"Match integers or floats that are positive or negative.",
"tags":"float",
"source":"https://projects.lukehaas.me/regexhub"
},
{
"name":"Phone Number, General",
"regex":"\\+?(\\d.*){3,}",
"description":"Match phone numbers at least 3 digits long.",
"tags":"validation",
"source":"https://projects.lukehaas.me/regexhub"
},
{
"name":"Phone Number, US",
"regex":"(?:1)?[ .-]?(?:\\(?([2-9][0-9]{2})\\)?[ .-]?)?(?:(([2-9][0-9]{2})[ .-]?([0-9]{4}))|([0-9]{3}[ .-]?[0-9]{4}))",
"description":"Match US phone number, with or without country or area code. Matches phone numbers like <code>1-800-234-5678</code> or <code>234-5679</code> or <code>(555) 432-1234</code>.",
"tags":"validation"
},
{
"name":"Web, Youtube ID from Video URL",
"regex":"https?://(?:youtu\\.be/|(?:[a-z]{2,3}\\.)?youtube\\.com/watch(?:\\?|#!)v=)([[:alnum:]-]{11}).*",
"description":"Match the ID of a youtube video URL.",
"tags":"video,youtube,url",
"source":"https://projects.lukehaas.me/regexhub"
},
{
"name":"Web, Youtube ID of Channel from URL",
"regex":"https?://(www\\.)?youtube.com/channel/UC([-_a-z0-9]{22})/i",
"description":"Match the ID of a youtube channel URL.",
"tags":"channel,youtube,url",
"source":"https://projects.lukehaas.me/regexhub"
},
{
"name":"Web, CSS comment",
"regex":"/\\*[^*]*\\*+([^/*][^*]*\\*+)*/",
"description":"Match standard CSS comments.",
"tags":"css,comment,code",
"source":"https://projects.lukehaas.me/regexhub"
},
{
"name":"Web, Wordpress shortcodes",
"regex":"\\[([a-z-_0-9]+)([^\\[]+)*(?:\\](.*)\\[/\\1\\]|\\s+/\\])",
"description":"Matches opening and closing shortcode tags with content in-between them.",
"tags":"wordpress,shortcodes,markup",
"source":"https://projects.lukehaas.me/regexhub"
},
{
"name":"Postal, U.S./Canadian ZIP/Postal Code",
"regex":"(^\\d{5}(-\\d{4})?$)|(^[ABCEGHJKLMNPRSTVXY]{1}\\d{1}[A-Z]{1} *\\d{1}[A-Z]{1}\\d{1}$)",
"description":"Matches US ZIP, ZIP+4, and Canadian Postal Codes.",
"tags":"address, postal, zip",
"source":"https://projects.lukehaas.me/regexhub"
},
{
"name":"Postal, UK Postal Code",
"regex":"(([gG][iI][rR] {0,}0[aA]{2})|(([aA][sS][cC][nN]|[sS][tT][hH][lL]|[tT][dD][cC][uU]|[bB][bB][nN][dD]|[bB][iI][qQ][qQ]|[fF][iI][qQ][qQ]|[pP][cC][rR][nN]|[sS][iI][qQ][qQ]|[iT][kK][cC][aA]) {0,}1[zZ]{2})|((([a-pr-uwyzA-PR-UWYZ][a-hk-yxA-HK-XY]?[0-9][0-9]?)|(([a-pr-uwyzA-PR-UWYZ][0-9][a-hjkstuwA-HJKSTUW])|([a-pr-uwyzA-PR-UWYZ][a-hk-yA-HK-Y][0-9][abehmnprv-yABEHMNPRV-Y]))) {0,}[0-9][abd-hjlnp-uw-zABD-HJLNP-UW-Z]{2}))",
"description":"Matches all UK postcodes.",
"tags":"address, postal, zip",
"source":"https://projects.lukehaas.me/regexhub"
},
{
"name":"Postal, Brazilian ZIP/Postal Code",
"regex":"[0-9]{5}-[0-9]{3}",
"description":"Matches BR ZIP/Postal Code.",
"tags":"address, postal, zip",
"source":"https://projects.lukehaas.me/regexhub"
},
{
"name":"Morse Code",
"regex":"[.-]{1,5}(?:[ \\t]+[.-]{1,5})*(?:[ \\t]+[.-]{1,5}(?:[ \\t]+[.-]{1,5})*)*",
"description":"Matches valid Morse Code.",
"tags":"morse, code",
"source":"https://projects.lukehaas.me/regexhub"
},
{
"name":"LaTeX Citation",
"regex":"\\\\[a-zA-Z0-9]{0,}cite[a-zA-Z0-9]{0,}(\\[([^]]+)\\]){0,2}\\**\\{([a-zA-Z0-9 ,]+)\\}",
"description":"Matches LaTeX citation commands, such as <code>\\cite{Moe1999}</code> and <code>\\authorcite{Curly2000}</code>",
"tags":"latex, text",
"source":"https://github.com/trinker/qdapRegex/"
},
{
"name":"Postal, US City and State",
"regex":"([A-Z][\\w-]*(\\s+[A-Z][\\w-]*)+),\\s*([A-Z]{2})\\b|(\\b[A-Za-z]+),\\s*([A-Z]{2})\\b",
"description":"Detects city comma state, e.g. <code>Anchorage, AK</code> or <code>New York City, NY</code>",
"tags":"address, postal, zip, city, state",
"source":"https://github.com/trinker/qdapRegex/"
},
{
"name":"Postal, US City, State and Zip",
"regex":"([A-Z][\\w-]*(\\s+[A-Z][\\w-]*)+),\\s*([A-Z]{2})\\s*(?<!\\d)\\d{5}(?:[ -]\\d{4})?\\b|(\\b[A-Za-z]+),\\s*([A-Z]{2})\\s*(?<!\\d)\\d{5}(?:[ -]\\d{4})?\\b",
"description":"Detects (single lower case word or multiple consecutive capitalized words before a comma and state) + state (2 consecutive capital letters) + zip code (5 digits or 5 + 4 digits) from a string.",
"tags":"address, postal, zip, city, state",
"source":"https://github.com/trinker/qdapRegex/"
},
{
"name":"Date/Time, Date Numeric",
"regex":"\\d{0,2}/\\d{2}/(?:\\d{4}|\\d{2})?|\\d{0,2}-\\d{2}-(?:\\d{4}|\\d{2})?|\\d{0,2}\\.\\d{2}\\.(?:\\d{4}|\\d{2})?",
"description":"Detects dates of the form <code>XX/XX/XXXX</code>, <code>XX/XX/XX</code>, <code>XX-XX-XXXX</code>, <code>XX-XX-XX</code>, <code>XX.XX.XXXX</code>, or <code>XX.XX.XX</code>.",
"tags":"",
"source":"https://github.com/trinker/qdapRegex/"
},
{
"name":"Date/Time, Date Longform with Month",
"regex":"(\\b)([A-Za-z]{3,9})(\\s+)([0-9][0-9]*)(,)(\\s+)([0-9]{4})",
"description":"Detects dates of the form <code>March XX, XXXX</code> or <code>Mar XX, XXXX</code>",
"tags":"",
"source":"https://github.com/trinker/qdapRegex/"
},
{
"name":"Date/Time, Date YYYY-MM-DD",
"regex":"[0-9]{4}[.-][0-9]{2}[.-][0-9]{2}",
"description":"Detects numeric European-style dates: <code>YYYY-MM-DD</code>",
"tags":"",
"source":"https://github.com/trinker/qdapRegex/"
},
{
"name":"Date/Time, Date General",
"regex":"\\d{0,2}/\\d{2}/(?:\\d{4}|\\d{2})?|\\d{0,2}-\\d{2}-(?:\\d{4}|\\d{2})?|\\d{0,2}\\.\\d{2}\\.(?:\\d{4}|\\d{2})?|(\\b)([A-Za-z]{3,9})(\\s+)([0-9][0-9]*)(,)(\\s+)([0-9]{4})|[0-9]{4}-[0-9]{2}-[0-9]{2}",
"description":"Detects numeric dates or dates with text month, e.g. <code>XX/XX/XXXX</code>, etc., or <code>Mar XX, XXXX</code>, etc., or <code>XXXX-XX-XX</code>",
"tags":"",
"source":"https://github.com/trinker/qdapRegex/"
},
{
"name":"Web, Email 2",
"regex":"([_+a-z0-9-]+(\\.[_+a-z0-9-]+)*@[a-z0-9-]+(\\.[a-z0-9-]+)*(\\.[a-z]{2,14}))",
"description":"General (not perfect) detection of email adressess such as <code>[email protected]</code>. Will also detect other valid email addressess like <code>[email protected]</code>.",
"tags":"",
"source":"http://stackoverflow.com/a/25077704/1000343"
},
{
"name":"Web, Emoticon",
"regex":">?[:;=8XB]{1}[-~+o^]?[|\")(>DO>{pP3/]+|</?3|XD+|D:<|x[-~+o^]?[|\")(>DO>{pP3/]+",
"description":"Captures common text emoticons, like <code>:-P</code>",
"tags":"",
"source":"https://github.com/trinker/qdapRegex/"
},
{
"name":"Number, General",
"regex":"(?<=^| )[-.]*\\d+(?:\\.\\d+)?(?= |\\.?$)|\\d+(?:,\\d{3})+(\\.\\d+)*",
"description":"Detect numbers in a string (works on numbers with commas, decimals and negatives)",
"tags":"",
"source":"https://github.com/trinker/qdapRegex/"
},
{
"name":"Number, Percentage",
"regex":"\\(?[0-9.]+\\)?%",
"description":"Detects percentages in a string",
"tags":"",
"source":"https://github.com/trinker/qdapRegex/"
},{
"name":"Phone Number, US Extended",
"regex":"(?:(?:\\+?1\\s*(?:[.-]\\s*)?)?(?:\\(\\s*([2-9]1[02-9]|[2-9][02-8]1|[2-9][02-8][02-9])\\s*\\)|([2-9]1[02-9]|[2-9][02-8]1|[2-9][02-8][02-9]))\\s*(?:[.-]\\s*)?)?([2-9]1[02-9]|[2-9][02-9]1|[2-9][02-9]{2})\\s*(?:[.-]\\s*)?([0-9]{4})(?:\\s*(?:#|x\\.?|ext\\.?|extension)\\s*(\\d+))?",
"description":"General phone number that just \"look for a string of at least 5 characters made up entirely of digits, periods, brackets, hyphens or spaces\"",
"tags":"",
"source":"http://stackoverflow.com/a/21008254/1000343"
},
{
"name":"Text, Repeated Characters",
"regex":"\\b(\\S+?)\\1\\S*\\b",
"description":"Detect words with repeating characters. The word must contain characters, each repeating at east 2 times.",
"tags":"",
"source":"http://stackoverflow.com/a/29438461/1000343"
},
{
"name":"Text, Repeated Phrases",
"regex":"(?i)\\b(\\w.*)((?:\\s|\\.{3}|,)+\\1)+\\b",
"description":"Detect repeating phrases in a string.",
"tags":"",
"source":"http://stackoverflow.com/a/28786617/1000343"
},
{
"name":"Text, Repeated Words",
"regex":"(?i)\\b(\\w+)\\s+\\1\\b",
"description":"Detect repeating words in a string.",
"tags":"",
"source":"https://github.com/trinker/qdapRegex/"
},
{
"name":"Text, Title Name",
"regex":"(((Dr|Mr|Mrs|Ms|dr|mr|mrs|ms)(\\.))|(Miss|Mizz|mizz))(\\s+)([A-Za-z]+)(\\s[A-Z][A-Za-z]*\\b)*",
"description":"Detect title (honorific) + person name(s) from a string.",
"tags":"",
"source":"https://github.com/trinker/qdapRegex/"
},
{
"name":"Date/Time, Time General",
"regex":"\\d{0,2}:\\d{2}(?:[:.]\\d+)?",
"description":"Detects time formats like <code>HH:MM</code>, <code>HH:MM:SS</code>, or <code>MM:SS.dddd</code>.",
"tags":"",
"source":"https://github.com/trinker/qdapRegex/"
},
{
"name":"Date/Time, Time with AM/PM",
"regex":"(\\d{0,2}:\\d{2}(?:[:.]\\d+)?)(\\s+(([AP]\\.{0,1}M\\.{0,1})|([ap]\\.{0,1}m\\.{0,1})))",
"description":"Detects time formats that optionally include AM/PM indicators.",
"tags":"",
"source":"https://github.com/trinker/qdapRegex/"
},
{
"name":"Date/Time, Timestamp",
"regex":"(#)?([0-9]){1,2}:?([0-9]){1,2}[:.]([0-9]){2}([:,.-][0-9]+)?#??|\\d{1}:\\d{2}",
"description":"Detects full timestamps formatted like <code>HH:MM:SS.OS</code>",
"tags":"",
"source":"https://github.com/trinker/qdapRegex/"
},
{
"name":"Web, Twitter URL",
"regex":"(https?://t\\.co[^ ]*)|(t\\.co[^ ]*)",
"description":"Detects Twitter Short URLs.",
"tags":"",
"source":"https://github.com/trinker/qdapRegex/"
},
{
"name":"Text, Whitespace Anywhere",
"regex":"^\\s+|\\s+$|\\s+(?=[.](?:\\D|$))|(\\s+)(?=[,]|[;:?!\\]\\}\\)]+)|(?<=[\\(\\[\\{])(\\s+)|(\\s+)(?=[\\s])",
"description":"Detects multiple white space, white space before a comma, white space before a single or consecutive combination of a colon, semicolon, or endmark (period, question mark, or exclamation point), white space after a left bracket (\"\", \"(\", \"[\") or before a right bracket (\"\", \")\", \"]\"), leading or trailing white space.",
"tags":"",
"source":"https://github.com/trinker/qdapRegex/"
},
{
"name":"Text, Whitespace Bracket",
"regex":"(\\s+)(?=[\\)\\]\\}])|(?<=[\\(\\[\\{])(\\s+)",
"description":"Detects white space after a left bracket (\"\", \"(\", \"[\") or before a right bracket (\"\", \")\", \"]\").",
"tags":"",
"source":"https://github.com/trinker/qdapRegex/"
},
{
"name":"Text, Whitespace Before Colon",
"regex":"(\\s+)(?=[\\:\\;]+)",
"description":"Detects white space before a single or consecutive combination of a colon, semicolon.",
"tags":"",
"source":"https://github.com/trinker/qdapRegex/"
},
{
"name":"Text, Whitespace Before Comma",
"regex":"(\\s+)(?=,)",
"description":"Detects white space before a comma.",
"tags":"",
"source":"https://github.com/trinker/qdapRegex/"
},
{
"name":"Text, Whitespace After Comma",
"regex":"(?!\\s+),(?=\\D)",
"description":"Detects white space after a comma.",
"tags":"",
"source":"https://github.com/trinker/qdapRegex/"
},
{
"name":"Text, Whitespace Before Endmark",
"regex":"\\s+(?=[.?!](?:\\D|$))",
"description":"Detects white space before endmark(s) (\".\", \"?\", \"!\").",
"tags":"",
"source":"https://github.com/trinker/qdapRegex/"
},
{
"name":"Text, Whitespace Leading",
"regex":"^\\s+",
"description":"Detects leading white space.",
"tags":"",
"source":"https://github.com/trinker/qdapRegex/"
},
{
"name":"Text, Whitespace Leading or Trailing",
"regex":"^\\s+|\\s+$",
"description":"Detects leading or trailing white space.",
"tags":"",
"source":"https://github.com/trinker/qdapRegex/"
},
{
"name":"Text, Whitespace Multiple",
"regex":"(\\s+)(?=[\\s])",
"description":"Detects multiple white space (more than single whitespace element).",
"tags":"",
"source":"https://github.com/trinker/qdapRegex/"
},
{
"name":"Text, Whitespace Before Punctuation",
"regex":"\\s+(?=[.](?:\\D|$))|(\\s+)(?=[,]|[;:?!]+)",
"description":"Detects multiple white space before a comma, white space before a single or consecutive combination of a colon, semicolon, or endmark (period, question mark, or exclamation point).",
"tags":"",
"source":"https://github.com/trinker/qdapRegex/"
},
{
"name":"Text, Whitespace Trailing",
"regex":"\\s+$",
"description":"Detects trailing white space.",
"tags":"",
"source":"https://github.com/trinker/qdapRegex/"
},
{
"name":"Semantic Version",
"regex":"\\b(v(ersion)*\\s*)([0-9]+)\\.([0-9]+)\\.([0-9]+)(?:\\.([0-9]+))?\\b",
"description":"Detects semantic version numbers like <code>0.1.5</code> or <code>3.4.4.9034</code> prefaced with <code>v</code> or <code>version<code>.",
"tags":"",
"source":"https://github.com/trinker/qdapRegex/"
}
]