Regular Expressions 101

Community Patterns

1...45678...901

Community Library Entry

1

Regular Expression
Java 8

"
(?<=watch\?v=|/videos/|/shorts/|/live/|embed\/|youtu.be\/|\/v\/|\/e\/|watch\?v%3D|watch\?feature=player_embedded&v=|%2Fvideos%2F|embed%2F|youtu.be%2F|%2Fv%2F)[^#\&\?\n]*
"

Description

Extract youtube video ID

Submitted by anonymous - a year ago (Last modified a year ago)