coub-regex

1.0.0 • Public • Published

coub-regex Build Status

The correct coub video id regex.

NPM

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:

NameGitHubTwitter
Ruslan Ismagilov@isRuslan@is_ruslan

License

MIT © Ruslan Ismagilov

/coub-regex/

    Package Sidebar

    Install

    npm i coub-regex

    Weekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • is_ruslan