function checkVideoUrl(url){
var regex= [],urlmatch= false;
regex[0] = /http:\/\/www.56.com\/\S+\/([^\/]+).html/i;
for(i=0;i<regex.length;i++){
urlmatch =regex[i].test(url);
if(urlmatch == true) break;
}
return urlmatch;
}
alert(checkVideoUrl('http://www.56.com/w68/album-aid-8529817.html'));//true
alert(checkVideoUrl('http://www.56.com/u96/v_NTQ5MTM1ODE.html'));//true
how can i match http://www.56.com/u96/v_NTQ5MTM1ODE.html only.
thanks a lot.