Hi, can anyone please tell me on how to use regex to validate youtube
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?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Rijwan AnsariRank #82 · 24.2K reputationPosted Mar 13, 2021, 9:17 AM EST
Satya KarkiRank #78 · 24.6K reputationPosted Mar 13, 2021, 9:18 AM EST