metacafe Archive

How to validate Youtube, Dailymotion, Metacafe and Vimeo video URL with JQuery

Most of the people struct to write regular expression to validate the given url valid or not. So that today we will have tutorial about validate Youtube, Dailymotion, Metacafe and Vimeo video url with Jquery regular expression. It validate the following type of urls https://www.youtube.com/watch?v=dZpc936_Hgo http://youtu.be/lvOFck4dn_8 http://vimeo.com/65484727 http://www.metacafe.com/watch/10599819/are_katy_perry_and_john_mayer_back_together http://www.dailymotion.com/video/xzdijh_hire-data-entry-expert_news Jquery Regex: [crayon-584a5ff66885b822985648/] How to validate: