Regular Expressions 101

Community Patterns

Extract video code from YouTube URL

1

Regular Expression
ECMAScript (JavaScript)

/
^(!http|https):\/\/www.youtube\.com\/.*?v=(\w{11})
/

Description

no description available

Submitted by @uimanwashere - 9 years ago