Regular Expressions 101

Community Patterns

youtube id und link

3

Regular Expression
ECMAScript (JavaScript)

/
<a href="http.?:.*(?:youtube.com\/|youtu.be\/)(?:watch\?v=|watch\?t=.*v=|embed\/|)(\w{11})<\/a>
/
g

Description

no description available

Submitted by ogerly - 9 years ago