正则表达式简单域
Regex simple domain
我正在搜索包含特定域名的正则表达式模式。
例如:
<any symbols>google<any symbols>
;
我从
开始
r'^(?:https?:\/\/)?(?:[^.]+\.)? ....
如何在我的正则表达式中添加域名 (google)?
感谢您的帮助。
我找到的解决方案:
(https?:\/\/(.+?\.)?google\.[a-zA-Z]{2,}(\/[A-Za-z0-9\-\._~:\/\?#\[\]@!$&'\(\)\*\+,;\=]*)?)
我正在搜索包含特定域名的正则表达式模式。
例如:
<any symbols>google<any symbols>
;
我从
开始r'^(?:https?:\/\/)?(?:[^.]+\.)? ....
如何在我的正则表达式中添加域名 (google)?
感谢您的帮助。
我找到的解决方案:
(https?:\/\/(.+?\.)?google\.[a-zA-Z]{2,}(\/[A-Za-z0-9\-\._~:\/\?#\[\]@!$&'\(\)\*\+,;\=]*)?)