Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Golang

`
^(?:https?:\/\/)?(?:(?:www\.)?youtube\.com\/(?:(?:v\/)|(?:embed\/|watch(?:\/|\?)){1,2}(?:.*v=)?|.*v=)?|(?:www\.)?youtu\.be\/)([A-Za-z0-9_\-]+)&?.*$
`
gmi

Description

no description available

Submitted by RyuaNerin - 9 years ago (Last modified a year ago)