Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

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

Description

<a> + link + id

Submitted by ogerly - 9 years ago