Skip to content

regexhq/coub-regex

Repository files navigation

coub-regex Build Status

The correct coub url 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')[3];
//=> 62092214

Thanks

You can match coub due to these people:

NameGitHubTwitter
Ruslan Ismagilov@isRuslan@is_ruslan

License

MIT © Ruslan Ismagilov

About

The correct Coub.com video id regex. Online: https://regex101.com/r/tK5aZ5/1 or http://regexr.com/3bei9

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published