Ramesh

Ramesh

  • NA
  • 81
  • 10.4k

Hi, can anyone please tell me on how to use regex to validate youtube

Mar 13 2021 4:35 AM
Hi, can anyone please tell me on how to use regex to validate youtube URL like: if I have assigned below URL to youtube_url variable and there is one more URL coming from CLI and suppose if I assigned that input URL in a variable "link". youtube_url = "https://www.youtube.com/watch?v" then how I can match both of these using regex?

Answers (2)