Sample Data:
+---------------------------------------------------------------------------------+
|refererurl |
+---------------------------------------------------------------------------------+
|https://www.tesco.com/groceries/dfp/dfp-beaa1a3b14.html |
|https://www.tesco.com/groceries/dfp/dfp-beaa1a3b14.html |
|https://www.tesco.com/groceries/dfp/dfp-beaa1a3b14.html |
|https://www.tesco.com/groceries/dfp/dfp-beaa1a3b14.html |
|http://mbappgiwwg33nfz2gk43dn4xgo4tpmnsxe6joozuwk5y8.com/ |
|http://mbappgewtgobzgu4dcmrtgy888888.com/ |
|https://www.tesco.com/groceries/dfp/dfp-beaa1a3b14.html |
|http://mbappgiwwg33nfz2gk43dn4xgo4tpmnsxe6joozuwk5y8.com/ |
|https://www.tesco.com/groceries/dfp/dfp-beaa1a3b14.html |
|https://www.tesco.com/groceries/dfp/dfp-beaa1a3b14.html |
|null |
|https://www.tesco.com/groceries/dfp/dfp-beaa1a3b14.html |
|http://mbappgiwwg33nfz2gk43dn4xgo4tpmnsxe6joozuwk5y8.com/ |
|https://www.tesco.com/groceries/dfp/dfp-beaa1a3b14.html |
|http://mbappgiwwg33nfz2gk43dn4xgo4tpmnsxe6joozuwk5y8.com/ |
|https://www.tesco.com/direct/party-gifts-flowers/helium-canisters/cat31450037.cat|
|https://www.tesco.com/groceries/dfp/dfp-beaa1a3b14.html |
|https://www.tesco.com/groceries/dfp/dfp-beaa1a3b14.html |
|https://www.tesco.com/groceries/dfp/dfp-beaa1a3b14.html |
|https://www.tesco.com/groceries/dfp/dfp-beaa1a3b14.html |
+---------------------------------------------------------------------------------+
我想要正则表达式如下:
a。我想要一个正则表达式表达式,它可以开始在“ .com”之前向后提取,直到包含.com的网站名称
例如
https://www.tesco.com/groceries/dfp/dfp-beaa1a3b14.html-> tesco.com
http://mbappgiwwg33nfz2gk43dn4xgo4tpmnsxe6joozuwk5y8.com-> mbappgiwwg33nfz2gk43dn4xgo4tpmnsxe6joozuwk5y8.com