March 2012

March 29, 2012


March 20, 2012


March 7, 2012

How to check that a Youtube URL is valid

When validating a Youtube video link, start by parsing the video ID from the URL. The URL has many valid formats, so be sure to choose a regexp that accommodates them all. You can then check if the video exists by looking it up from Youtube’s public API. One thing to note is that the API won’t find the video until it’s been indexed, which can take up to a day.

Ilya

March 5, 2012