im trying to restrict user from entering other than url which starts with http:// or https:// or filepath like \abc by using below regex\[code\]var regexp = /^(http\/\/)|https\/\/)|(\\\\)+)/;var enteredvalue="http://facebookhttp://"if (!regexp.test(enteredvalue.value)) { alert("not valid url or filepath);}\[/code\]But i need to restrict the user even entering specific duplicate words like http:// or https:// or //ie the above mentioned 3 words should not be repeated,pls suggest the regularexpression for the same.I mean we need to alert if user enters even any of the above 3 words as duplicate