1.0.0 • Published 9 years ago
coub-regex v1.0.0
coub-regex
The correct coub video id regex.
Install
$ npm install coub-regex
$ npm test
Play online
Usage
All use-cases are avaliable in tests
var coubRegex = require('coub-regex');
// plain link
coubRegex().test('https://coub.com/view/7cwhu');
//=> true
// get video ID
coubRegex().exec('https://coub.com/view/7cwh0')[5];
//=> 62092214
Thanks
You can match coub due to these people:
License
MIT © Ruslan Ismagilov
1.0.0
9 years ago