Regular Expressions 101

Library entries

Youtube ID matcher

Vote

4

Regular Expression
javascript

/
(youtu(?:\.be|be\.com)\/(?:.*v(?:\/|=)|(?:.*\/)?)([\w'-]+))
/
ig

Description

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