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 11# 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.
33
44
55## Install [ ![ Nodei.co stats] [ npmjs-ico ]] [ npmjs-url ]
@@ -11,11 +11,25 @@ $ npm test
1111```
1212
1313
14- ## Online
15-
14+ ## Play online
15+ - https://regex101.com/r/uW5oK9/4
16+ - http://regexr.com/3bdug
1617
1718## 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+
1933
2034
2135## Thanks
You can’t perform that action at this time.
0 commit comments