File tree Expand file tree Collapse file tree 1 file changed +18
-4
lines changed Expand file tree Collapse file tree 1 file changed +18
-4
lines changed Original file line number Diff line number Diff line change 1
1
# vimeo-regex [ ![ NPM version] [ npmjs-img ]] [ npmjs-url ] [ ![ Build Status] [ travis-img ]] [ travis-url ] [ ![ Coveralls] [ coveralls-img ]] [ coveralls-url ]
2
- > The correct Youtube video id regex. Regex done right!
2
+ > The correct Vimeo video id regex.
3
3
4
4
5
5
## Install [ ![ Nodei.co stats] [ npmjs-ico ]] [ npmjs-url ]
@@ -11,11 +11,25 @@ $ npm test
11
11
```
12
12
13
13
14
- ## Online
15
-
14
+ ## Play online
15
+ - https://regex101.com/r/uW5oK9/4
16
+ - http://regexr.com/3bdug
16
17
17
18
## Usage
18
- > For more use-cases see [ tests] ( ./test.js )
19
+ > All use-cases are avaliable in [ tests] ( ./test.js )
20
+
21
+ ```
22
+ var vimeoRegex = require('youtube-regex');
23
+
24
+ // plain link
25
+ vimeoRegex().test('https://vimeo.com/62092214');
26
+ //=> true
27
+
28
+ // groups link
29
+ vimeoRegex().test('http://vimeo.com/groups/musicvideo/videos/126199390');
30
+ //=> true
31
+ ```
32
+
19
33
20
34
21
35
## Thanks
You can’t perform that action at this time.
0 commit comments