All Projects → regexhq → Youtube Regex

regexhq / Youtube Regex

Licence: other
Best YouTube Video ID regex. Online: https://regex101.com/r/rN1qR5/2 and http://regexr.com/3anm9

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Youtube Regex

Grex
A command-line tool and library for generating regular expressions from user-provided test cases
Stars: ✭ 4,847 (+5471.26%)
Mutual labels:  regex, regexp, regular-expressions
Proposal Regexp Unicode Property Escapes
Proposal to add Unicode property escapes `\p{…}` and `\P{…}` to regular expressions in ECMAScript.
Stars: ✭ 112 (+28.74%)
Mutual labels:  regex, regexp, regular-expressions
Regex
An implementation of regular expressions for Rust. This implementation uses finite automata and guarantees linear time matching on all inputs.
Stars: ✭ 2,125 (+2342.53%)
Mutual labels:  regex, regexp, regular-expressions
Regex For Regular Folk
🔍💪 Regular Expressions for Regular Folk — A visual, example-based introduction to RegEx [BETA]
Stars: ✭ 242 (+178.16%)
Mutual labels:  regex, regexp, regular-expressions
moar
Deterministic Regular Expressions with Backreferences
Stars: ✭ 19 (-78.16%)
Mutual labels:  regex, regexp, regular-expressions
python-hyperscan
A CPython extension for the Hyperscan regular expression matching library.
Stars: ✭ 112 (+28.74%)
Mutual labels:  regex, regexp, regular-expressions
url-regex-safe
Regular expression matching for URL's. Maintained, safe, and browser-friendly version of url-regex. Resolves CVE-2020-7661 for Node.js servers.
Stars: ✭ 59 (-32.18%)
Mutual labels:  regex, regexp, regular-expressions
RgxGen
Regex: generate matching and non matching strings based on regex pattern.
Stars: ✭ 45 (-48.28%)
Mutual labels:  regex, regexp, regular-expressions
Regexparam
A tiny (308B) utility that converts route patterns into RegExp. Limited alternative to `path-to-regexp` 🙇‍♂️
Stars: ✭ 390 (+348.28%)
Mutual labels:  regex, regexp
Picomatch
Blazing fast and accurate glob matcher written JavaScript, with no dependencies and full support for standard and extended Bash glob features, including braces, extglobs, POSIX brackets, and regular expressions.
Stars: ✭ 393 (+351.72%)
Mutual labels:  regex, regexp
Regulex
🚧 Regular Expression Excited!
Stars: ✭ 4,877 (+5505.75%)
Mutual labels:  regex, regexp
Regexp2
A full-featured regex engine in pure Go based on the .NET engine
Stars: ✭ 389 (+347.13%)
Mutual labels:  regex, regexp
Netflix To Srt
Rip, extract and convert subtitles to .srt closed captions from .xml/dfxp/ttml and .vtt/WebVTT (e.g. Netflix, YouTube)
Stars: ✭ 387 (+344.83%)
Mutual labels:  youtube, regex
Any Rule
🦕 常用正则大全, 支持web / vscode / idea / Alfred Workflow多平台
Stars: ✭ 5,708 (+6460.92%)
Mutual labels:  regex, regexp
Social Media Profiles Regexs
📇 Extract social media profiles and more with regular expressions
Stars: ✭ 324 (+272.41%)
Mutual labels:  regex, regular-expressions
Onigmo
Onigmo is a regular expressions library forked from Oniguruma.
Stars: ✭ 536 (+516.09%)
Mutual labels:  regex, regexp
Commonregex
🍫 A collection of common regular expressions for Go
Stars: ✭ 733 (+742.53%)
Mutual labels:  regex, regexp
Regex
The Hoa\Regex library.
Stars: ✭ 308 (+254.02%)
Mutual labels:  regex, regular-expressions
Libfsm
DFA regular expression library & friends
Stars: ✭ 512 (+488.51%)
Mutual labels:  regex, regexp
Py regular expressions
Learn Python Regular Expressions step by step from beginner to advanced levels
Stars: ✭ 770 (+785.06%)
Mutual labels:  regex, regular-expressions

youtube-regex NPM version Build Status Coveralls regexps org

The correct Youtube video id regex. Regex done right!

Install Nodei.co stats

Install with npm

$ npm install youtube-regex
$ npm test

Online

Usage

var youtubeRegex = require('youtube-regex');

// contains youtube url address
youtubeRegex().test('unicorn youtube.com/watch?v=0EWbonj7f18');
//=> true

// also these will works
youtubeRegex().test('youtube.com/watch?v=0EWbonj7f18');
//=> true
youtubeRegex().test('youtube.com/watch?feature=related&v=0EWbonj7f18');
//=> true
youtubeRegex().test('youtube.com/watch?v=0EWbonj7f18&feature=related');
//=> true
youtubeRegex().test('http://www.youtube.com/watch?v=0EWbonj7f18');
//=> true
youtubeRegex().test('http://www.youtube.com/watch?feature=related&v=0EWbonj7f18');
//=> true

For more use-cases see tests

Authors & Contributors

Charlike Mike Reagent author tips

License MIT license

Copyright (c) 2014 Charlike Mike Reagent, contributors.
Released under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].