atom feed3 messages in Regarding validation of Video URL.
FromSent OnAttachments
GauravDec 17, 2007 4:28 am 
YouTube API GuideDec 18, 2007 5:58 pm 
GauravJan 3, 2008 9:36 pm 
Subject:Re: Regarding validation of Video URL.
From:YouTube API Guide (
Date:Dec 18, 2007 5:58:52 pm

Hi Gaurav,

If you just want to do a quick sanity check, this regex basically covers the format: [a-zA-Z0-9_-]{11}

If you actually need to see if the video is live and available, you can try:

It will return HTTP status 200 if it's live and available, 404 otherwise.



On Dec 17, 4:28 am, Gaurav <> wrote:

Hi All,

I want to save the Video URL that a user uploads on YouTube.

Each time a user enters a YouTube Video Url or Video Id and saves it, I want to validate the Url/Id before saving so that no user can enter the invalid Url/Id .

If anyone having an idea for this please let me know.