Validate youtube and other video site url
<p>i want to provide a option for user to add video from the following video sites </p>

<ol>
<li>Dailymotion</li>
<li>Metacafe</li>
<li>YouTube - <a href="http://stackoverflow.com/questions/3452546/javascript-regex-how-to-get-youtube-video-id-from-url/4811367#4811367">Javascript REGEX: How to get youtube video id from URL?</a></li>
<li>Google Video</li>
<li>Hulu</li>
<li>Yahoo! Video</li>
<li>Vimeo - <a href="http://stackoverflow.com/questions/2916544/parsing-a-vimeo-id-using-javascript">Parsing a Vimeo ID using Javascript?</a></li>
<li>MySpace Videos</li>
</ol>

<p>So would like to validate the data both in javascript as well as php. Do the url structure of these site change or they stay usually constant . Any suggestions are welcome . </p>

<p>EDIT: 
I have got some solution for a few and i have update the question . I want for others preferably Regex solution </p>
