Regular Expressions 101

Community Patterns

0

PLP redirection

PCRE2 (PHP >=7.3)
PLP redirection
Submitted by anonymous - 5 days ago
1

loyal

PCRE2 (PHP >=7.3)
loyal
Submitted by anonymous - 10 days ago
1

named capture

PCRE2 (PHP >=7.3)
simple named capture
Submitted by Gene - 10 days ago

youtube url match

10

Regular Expression
ECMAScript (JavaScript)

/
(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|playlist\?|watch\?v=|watch\?.+(?:&|&);v=))([a-zA-Z0-9\-_]{11})?(?:(?:\?|&|&)index=((?:\d){1,3}))?(?:(?:\?|&|&)?list=([a-zA-Z\-_0-9]{34}))?(?:\S+)?
/
g

Description

Loading markdown...
Submitted by anonymous - 9 years ago