开发者

Regex to find keywords in URL

I am trying to write a Regex to detect specific keywords in a URL. For example I am looking for the word "update" in a URL and it could be as part of the domain or subdomain like these:

myupda开发者_运维知识库te.example.com

www.my-update.com

I tried this but only get subdomains that start with "update":

http\:\/\/\bupdate\b

Any help would be appreciated!


/http:\/\/[^\/]*update/
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜