Regular Expressions 101

Community Library Entry

5

Regular Expression
ECMAScript (JavaScript)

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

Description

Submitted by anonymous - 11 years ago