vimeo-regex
v1.0.0
Published
The correct vimeo video id regex
Downloads
3,792
Maintainers
Readme
vimeo-regex
The correct Vimeo video id regex.
Install
$ npm install vimeo-regex
$ npm test
Play online
- https://regex101.com/r/uW5oK9/5
- http://regexr.com/3begm
Usage
All use-cases are avaliable in tests
var vimeoRegex = require('vimeo-regex');
// plain link
vimeoRegex().test('https://vimeo.com/62092214');
//=> true
// groups link
vimeoRegex().test('http://vimeo.com/groups/musicvideo/videos/126199390');
//=> true
// get video ID
vimeoRegex().exec('https://vimeo.com/62092214')[5];
//=> 62092214
Thanks
You can match Vimeo due to these people:
License
MIT © Ruslan Ismagilov