coub-regex

The correct coub video id regex

Usage no npm install needed!

<script type="module">
  import coubRegex from 'https://cdn.skypack.dev/coub-regex';
</script>

README

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