str= "https://www.youtube.com?bla=true\\lla%@12300&bulab=567#page=11<br>"; reg= /(?:https?:\/\/)?w*\.?(?:imdb|nfomation|youtube|nfo\.sceper)\.[\w\d:#@%/;\$()\\~=\?\+-\.&]*/gi alert(str.match(reg));