开发者

Regex to find keywords in URL

开发者 https://www.devze.com 2023-01-29 13:30 出处:网络
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:

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

精彩评论

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