Regular Expressions 101

Library entries

YouTube Video Validation Expression

Vote

0

Regular Expression
pcre2

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

Description

Loading markdown...
Submitted by UnrealApex - 2 months ago