The correct Vimeo video id regex.
$ npm install vimeo-regex
$ npm test
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')[4];
//=> 62092214
You can match Vimeo due to these people:
Name | GitHub | |
---|---|---|
Ruslan Ismagilov | @isRuslan | @is_ruslan |
MIT © Ruslan Ismagilov