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.