regexp-examples 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/coverage/.resultset.json +77 -74
- data/coverage/index.html +350 -332
- data/lib/regexp-examples/groups.rb +2 -0
- data/lib/regexp-examples/version.rb +1 -1
- data/regexp-examples.gemspec +0 -1
- data/spec/regexp-examples_spec.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b60b844e84384e758c2f1eafe5a667d139e6003
|
4
|
+
data.tar.gz: 54b4a5741642eb3cf32be182f191ef910c835c96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2dc8496cb6d45555b8da957c178cbc0e9be86ca9d769275c2f5bf74ef4f67fe5bdab47a0458527fc8ea4e4ee5621377541e470072313b34f5d1c5ec0b50b4cb
|
7
|
+
data.tar.gz: 63c4765a9704387dc85cec23537717416403e96bcfb469649ab4a1d6d09993ddab75366af55f792f8ea8a3530f6dc5b2f48f3018ff2b1429c36c27ff204bd446
|
data/README.md
CHANGED
@@ -31,7 +31,7 @@ or a huge number of possible matches, such as `/.\w/`, then only a subset of the
|
|
31
31
|
|
32
32
|
* All forms of repeaters (quantifiers), e.g. `/a*/`, `/a+/`, `/a?/`, `/a{1,4}/`, `/a{3,}/`, `a{,2}`
|
33
33
|
* Boolean "Or" groups, e.g. `/a|b|c/`
|
34
|
-
* Character sets (inluding ranges and negation!), e.g. `/[abc]/`, `/[A-Z0-9]/`, `/[^a-z]/`
|
34
|
+
* Character sets (inluding ranges and negation!), e.g. `/[abc]/`, `/[A-Z0-9]/`, `/[^a-z]/`, `/[\w\s\b]/`
|
35
35
|
* Escaped characters, e.g. `/\n/`, `/\w/`, `/\D/` (and so on...)
|
36
36
|
* Non-capture groups, e.g. `/(?:foo)/`
|
37
37
|
* Capture groups, e.g. `/(group)/`
|
@@ -47,7 +47,7 @@ or a huge number of possible matches, such as `/.\w/`, then only a subset of the
|
|
47
47
|
|
48
48
|
* Options, e.g. `/pattern/i`, `/foo.*bar/m` - Using options will currently just be ignored, e.g. `/test/i.examples` will NOT include `"TEST"`
|
49
49
|
|
50
|
-
Using any of the following will raise
|
50
|
+
Using any of the following will raise a RegexpExamples::UnsupportedSyntax exception (until such time as they are implemented!):
|
51
51
|
|
52
52
|
* POSIX bracket expressions, e.g. `/[[:alnum:]]/`, `/[[:space:]]/`
|
53
53
|
* Named properties, e.g. `/\p{L}/` ("Letter"), `/\p{Arabic}/` ("Arabic character"), `/\p{^Ll}/` ("Not a lowercase letter")
|
@@ -58,7 +58,7 @@ Using any of the following will raise an RegexpExamples::UnsupportedSyntax excep
|
|
58
58
|
The following features in the regex language can never be properly implemented into this gem because, put simply, they are not technically "regular"!
|
59
59
|
If you'd like to understand this in more detail, there are many good blog posts out on the internet. The [wikipedia entry](http://en.wikipedia.org/wiki/Regular_expression)'s not bad either.
|
60
60
|
|
61
|
-
Using any of the following will raise
|
61
|
+
Using any of the following will raise a RegexpExamples::IllegalSyntax exception:
|
62
62
|
|
63
63
|
* Lookarounds, e.g. `/foo(?=bar)/`, `/foo(?!bar)/`, `/(?<=foo)bar/`, `/(?<!foo)bar/`
|
64
64
|
* [Anchors](http://ruby-doc.org/core-2.2.0/Regexp.html#class-Regexp-label-Anchors) (`\b`, `\B`, `\G`, `^`, `\A`, `$`, `\z`, `\Z`), e.g. `/\bword\b/`, `/line1\n^line2/`
|
data/coverage/.resultset.json
CHANGED
@@ -16,8 +16,8 @@
|
|
16
16
|
null,
|
17
17
|
null,
|
18
18
|
1,
|
19
|
-
|
20
|
-
|
19
|
+
320,
|
20
|
+
320,
|
21
21
|
191,
|
22
22
|
264,
|
23
23
|
null,
|
@@ -38,28 +38,28 @@
|
|
38
38
|
1,
|
39
39
|
1,
|
40
40
|
1,
|
41
|
-
|
41
|
+
361,
|
42
42
|
null,
|
43
43
|
null,
|
44
44
|
1,
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
45
|
+
320,
|
46
|
+
320,
|
47
|
+
320,
|
48
|
+
350,
|
49
|
+
464,
|
50
50
|
null,
|
51
51
|
null,
|
52
|
-
|
52
|
+
320,
|
53
53
|
null,
|
54
54
|
null,
|
55
55
|
null,
|
56
56
|
1,
|
57
57
|
1,
|
58
|
-
|
58
|
+
336,
|
59
59
|
null,
|
60
60
|
null,
|
61
61
|
1,
|
62
|
-
|
62
|
+
295,
|
63
63
|
null,
|
64
64
|
null,
|
65
65
|
null,
|
@@ -117,11 +117,11 @@
|
|
117
117
|
1,
|
118
118
|
1,
|
119
119
|
1,
|
120
|
-
|
121
|
-
|
120
|
+
76,
|
121
|
+
172,
|
122
122
|
28,
|
123
123
|
null,
|
124
|
-
|
124
|
+
172,
|
125
125
|
null,
|
126
126
|
null,
|
127
127
|
null,
|
@@ -192,34 +192,34 @@
|
|
192
192
|
1,
|
193
193
|
1,
|
194
194
|
1,
|
195
|
-
|
196
|
-
|
197
|
-
|
195
|
+
93,
|
196
|
+
93,
|
197
|
+
93,
|
198
198
|
null,
|
199
199
|
null,
|
200
200
|
1,
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
201
|
+
141,
|
202
|
+
141,
|
203
|
+
420,
|
204
|
+
402,
|
205
|
+
361,
|
206
|
+
361,
|
207
|
+
361,
|
208
208
|
null,
|
209
|
-
|
209
|
+
123,
|
210
210
|
null,
|
211
211
|
null,
|
212
212
|
1,
|
213
213
|
null,
|
214
214
|
1,
|
215
|
-
|
216
|
-
|
215
|
+
420,
|
216
|
+
420,
|
217
217
|
null,
|
218
218
|
46,
|
219
219
|
null,
|
220
220
|
41,
|
221
221
|
null,
|
222
|
-
|
222
|
+
16,
|
223
223
|
null,
|
224
224
|
4,
|
225
225
|
null,
|
@@ -241,7 +241,7 @@
|
|
241
241
|
null,
|
242
242
|
240,
|
243
243
|
null,
|
244
|
-
|
244
|
+
402,
|
245
245
|
null,
|
246
246
|
null,
|
247
247
|
1,
|
@@ -294,8 +294,8 @@
|
|
294
294
|
null,
|
295
295
|
null,
|
296
296
|
1,
|
297
|
-
|
298
|
-
|
297
|
+
361,
|
298
|
+
361,
|
299
299
|
null,
|
300
300
|
5,
|
301
301
|
null,
|
@@ -305,9 +305,9 @@
|
|
305
305
|
null,
|
306
306
|
5,
|
307
307
|
null,
|
308
|
-
|
308
|
+
336,
|
309
309
|
null,
|
310
|
-
|
310
|
+
361,
|
311
311
|
null,
|
312
312
|
null,
|
313
313
|
1,
|
@@ -339,27 +339,27 @@
|
|
339
339
|
null,
|
340
340
|
null,
|
341
341
|
1,
|
342
|
-
|
342
|
+
16,
|
343
343
|
1,
|
344
344
|
null,
|
345
|
-
|
346
|
-
|
347
|
-
|
345
|
+
15,
|
346
|
+
15,
|
347
|
+
15,
|
348
348
|
null,
|
349
349
|
null,
|
350
350
|
1,
|
351
351
|
1,
|
352
352
|
null,
|
353
353
|
null,
|
354
|
-
|
354
|
+
15,
|
355
355
|
null,
|
356
356
|
null,
|
357
357
|
null,
|
358
358
|
null,
|
359
|
-
|
360
|
-
|
359
|
+
43,
|
360
|
+
43,
|
361
361
|
null,
|
362
|
-
|
362
|
+
15,
|
363
363
|
null,
|
364
364
|
null,
|
365
365
|
1,
|
@@ -419,11 +419,11 @@
|
|
419
419
|
null,
|
420
420
|
null,
|
421
421
|
1,
|
422
|
-
|
422
|
+
336,
|
423
423
|
null,
|
424
424
|
null,
|
425
425
|
1,
|
426
|
-
|
426
|
+
294,
|
427
427
|
null,
|
428
428
|
null,
|
429
429
|
null,
|
@@ -437,12 +437,12 @@
|
|
437
437
|
1,
|
438
438
|
1,
|
439
439
|
1,
|
440
|
-
|
441
|
-
|
442
|
-
|
440
|
+
1760,
|
441
|
+
1760,
|
442
|
+
1760,
|
443
443
|
122,
|
444
444
|
null,
|
445
|
-
|
445
|
+
1760,
|
446
446
|
null,
|
447
447
|
null,
|
448
448
|
1,
|
@@ -452,7 +452,7 @@
|
|
452
452
|
null,
|
453
453
|
null,
|
454
454
|
1,
|
455
|
-
|
455
|
+
464,
|
456
456
|
null,
|
457
457
|
null,
|
458
458
|
null,
|
@@ -467,39 +467,41 @@
|
|
467
467
|
null,
|
468
468
|
1,
|
469
469
|
1,
|
470
|
-
|
471
|
-
|
470
|
+
29,
|
471
|
+
29,
|
472
472
|
1,
|
473
473
|
1,
|
474
474
|
null,
|
475
|
-
|
475
|
+
28,
|
476
476
|
null,
|
477
477
|
null,
|
478
|
-
|
479
|
-
|
478
|
+
29,
|
479
|
+
29,
|
480
480
|
null,
|
481
481
|
null,
|
482
482
|
1,
|
483
483
|
null,
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
484
|
+
29,
|
485
|
+
29,
|
486
|
+
29,
|
487
|
+
29,
|
488
488
|
null,
|
489
|
-
|
489
|
+
29,
|
490
490
|
9,
|
491
491
|
null,
|
492
492
|
null,
|
493
|
-
|
494
|
-
|
493
|
+
29,
|
494
|
+
29,
|
495
495
|
null,
|
496
496
|
null,
|
497
497
|
1,
|
498
|
-
|
499
|
-
|
500
|
-
|
498
|
+
29,
|
499
|
+
541,
|
500
|
+
14,
|
501
501
|
4,
|
502
502
|
null,
|
503
|
+
1,
|
504
|
+
null,
|
503
505
|
2,
|
504
506
|
null,
|
505
507
|
7,
|
@@ -509,8 +511,8 @@
|
|
509
511
|
null,
|
510
512
|
null,
|
511
513
|
1,
|
512
|
-
|
513
|
-
|
514
|
+
29,
|
515
|
+
573,
|
514
516
|
null,
|
515
517
|
null,
|
516
518
|
null,
|
@@ -580,12 +582,12 @@
|
|
580
582
|
1,
|
581
583
|
1,
|
582
584
|
1,
|
583
|
-
|
585
|
+
93,
|
584
586
|
null,
|
585
587
|
null,
|
586
|
-
|
587
|
-
|
588
|
-
|
588
|
+
163,
|
589
|
+
76,
|
590
|
+
76,
|
589
591
|
null,
|
590
592
|
null,
|
591
593
|
1,
|
@@ -596,10 +598,10 @@
|
|
596
598
|
1,
|
597
599
|
1,
|
598
600
|
11,
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
601
|
+
76,
|
602
|
+
76,
|
603
|
+
76,
|
604
|
+
248,
|
603
605
|
null,
|
604
606
|
null,
|
605
607
|
null,
|
@@ -692,6 +694,7 @@
|
|
692
694
|
null,
|
693
695
|
null,
|
694
696
|
null,
|
697
|
+
null,
|
695
698
|
1,
|
696
699
|
1,
|
697
700
|
null,
|
@@ -787,6 +790,6 @@
|
|
787
790
|
null
|
788
791
|
]
|
789
792
|
},
|
790
|
-
"timestamp":
|
793
|
+
"timestamp": 1421523841
|
791
794
|
}
|
792
795
|
}
|