<!DOCTYPE html> <html> <head> <script src=”http://code.jquery.com/jquery-1.9.1.min.js”></script> <meta charset=”utf-8″> <meta name=”robots” content=”noindex”> <title>JS Bin</title> </head> <body> Video url <input type=”text” id=”videourl” /> <input type=”button” id=”button” value=”check” /> <script> $(“#button”).click(function(){ var videolink =$(“#videourl”).val(); var regExp = /^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/; var match = videolink.match(regExp); if (match && match[7].length == 11) { alert(“youtube video id : “+ match[7]); return; } regExp ..