Javascript 想要url验证正则表达式吗

Javascript 想要url验证正则表达式吗,javascript,Javascript,当我输入url验证时,它将通过下面的异常 (Exp:Sorry! You cannot include the intended website in Web Tab, as the intended website restricts its content from loading inside another website.) 我希望url验证正则表达式请参阅此要点,以获得具有解释性注释的非常强大的正则表达式 编辑: 您可以通过删除不需要的字符串对其进行自定义。是否出现此异常?你试过什

当我输入url验证时,它将通过下面的异常

(Exp:Sorry! You cannot include the intended website in Web Tab, as the
intended website restricts its content from loading inside another
website.)

我希望url验证正则表达式

请参阅此要点,以获得具有解释性注释的非常强大的正则表达式

编辑:
您可以通过删除不需要的字符串对其进行自定义。

是否出现此异常?你试过什么??我使用了这个正则表达式(regex:^(http:\/\/www\.\124; https:\/\/www\.\124; http:\/\/\\/\\\/\\\/\\\\/\\\\/\\\\\/\\\\\/\\\\\\/\\\\\\\/\\\\\\\\\\\/\\\\\\\\\\/\\\\\\\\\\\\/\\\\\\\\\\\\\\\\\/\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\;gmail.com是一个完全有效的URI。如果(/https\:\/\/gmail\.com/.test(url)){抛出新错误(((Exp\:抱歉!您不能在Web选项卡中包含预期网站,因为预期网站限制其内容在另一个网站中加载。)),您可能希望在URI检查后执行单独的黑名单检查(以禁止特定的URI)。}