2
Answers

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?

Answers (2)