Regular Expressions 101

Community Patterns

Get Youtube ID from shared URL

0

Regular Expression
ECMAScript (JavaScript)

/
(?<=\=)(.*?)(?=\&)
/
gmi

Description

Given a youtube URL ... pull the video ID

Submitted by anonymous - 3 years ago