Regular Expressions 101

Community Patterns

0

Address

PCRE2 (PHP >=7.3)
grab address
Submitted by anonymous - 3 years ago

YouTube Video Validation Expression

0

Regular Expression
PCRE2 (PHP >=7.3)

/
((https(?:s)?:\/\/)?(www\.)?)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?&v=))((?:\w|-){11})((?:\&|\?)\S*)?
/

Description

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