hello guys,
I’m using youtube API to post videos to my website, this API needs only the vid ID which is to be posted.
Can anyone tell me how can i get a video ID from a youtube URL?
Hey, thanks for the answer however isnt there any simpler way that works like i said? anything between “v=” and “&” or end of string?
I say it because that string may contain about anything, not only letters/numbers, an example of link is this: youtube.com/watch?v=-IqfDiA-esA
So if its possible to do it the way i want it’ll be better, if not then i can use the regex u gave while just adding ‘-’ and hope no other special chars will pop-up