我只需要在rawhtml文件中显示域和DNS服务器的名称。
我尝试了$regex
:
db.builtwith1.find({"rawhtml":{"$regex":".*'content= "Web technologies'.*"},"rawhtml":{"$regex":".*'is using on their website'.*"}}})
但我没有得到所需的输出。
EG rawhtml:
^!DOCTYPE html>^html>^head>^meta charset="utf-8" />^link rel="dns-prefetch" href="//trends.builtwith.com" />^link rel="dns-prefetch" href="//trendspro.builtwith.com" />^link rel="dns-prefetch" href="//api.builtwith.com" />^title>
JUSTPATERSON.CO.NZ Technology Profile^/title>^meta name="description" content="Web technologies JUSTPATERSON.CO.NZ is using on their website." />^meta name="viewport" ......
在本文中,我只需要提取JUSTPATERSON.CO.NZ
任何人都可以使用mongo shell建议一般化结果吗?