Skip to content

Instantly share code, notes, and snippets.

@brunodles
Last active April 24, 2024 07:30
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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\-_]+)\&?
@MrZillaGold
Copy link

@ddruganov
Copy link

thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment