i want to provide a option for user to add video from the following video sites
- Dailymotion
- Metacafe
- YouTube - JavaScript REGEX: How do I get the YouTube video id from a URL?
- Google Video
- Hulu
- Yahoo! Video
- Vimeo - Parsing a Vimeo ID using JavaScript?
- MySpace Videos
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 .
EDIT: I have got some solution for a few and i have update the question . I want for others preferably Regex solution