Regular Expressions 101

Community Patterns

Youtube Video ID

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 - 9 months ago (Last modified 9 months ago)