Regular Expressions 101

Community Patterns

0

Michele XP E

ECMAScript (JavaScript)
Teste
Submitted by Luciano - 2 years ago
0

hk_ec_lanecrawford

PCRE2 (PHP >=7.3)
Submitted by Alex - 2 years ago
0

address

PCRE (PHP <7.3)
not sure
Submitted by anonymous - 2 years ago
0

1030

ECMAScript (JavaScript)
Validation
Submitted by Christopher Santos - 2 years ago
0

IPv6

PCRE2 (PHP >=7.3)
small ipv6 regex
Submitted by anonymous - 2 years ago
0

regex_bl_fees_types

PCRE2 (PHP >=7.3)
guif
Submitted by guif - 2 years ago

youtube url match

10

Regular Expression
ECMAScript (JavaScript)

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

Description

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