Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
This is a youtube regex to get video id
(?:https?:\/\/)?(?:www\.)?youtu\.?be(?:\.com)?\/?.*(?:watch|embed)?(?:.*v=|v\/|\/)([\w\-_]+)\&?
@Maxmaxs5

This comment has been minimized.

Copy link

commented Aug 3, 2018

This is perfect! Helped me learn about Regex as well as matching any possible youtube link. Well done and thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.