Skip to content

Instantly share code, notes, and snippets.

@brunodles
Last active April 24, 2024 07:30
Show Gist options
  • Save brunodles/927fd8feaaccdbb9d02b to your computer and use it in GitHub Desktop.
Save brunodles/927fd8feaaccdbb9d02b to your computer and use it in GitHub Desktop.
This is a youtube regex to get video id
(?:https?:\/\/)?(?:www\.)?youtu\.?be(?:\.com)?\/?.*(?:watch|embed)?(?:.*v=|v\/|\/)([\w\-_]+)\&?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment