URL 前面的双管道 - 正则表达式?

Double pipe in front of URL - Regex?

查看 URL listings for adblockers 并查看 URL 之前带有双竖线的条目:

||akamai.net^*.247realmedia.com/$third-party

有人知道这些双管指的是什么吗?谢谢

这不是 RegEx,而是 AdBlock 脚本如何使用它。

引自 https://adblockplus.org/en/filters、"Matching at beginning/end of an address" 部分

Sometimes one wants to block http://example.com/banner.gif as well as https://example.com/banner.gif and http://www.example.com/banner.gif. This can be achieved by putting two pipe symbols in front of the filter which makes sure the filter matches at the beginning of the domain name: ||example.com/banner.gif will block all these addresses while not blocking http://badexample.com/banner.gif or http://gooddomain.example/analyze?http://example.com/banner.gif (requires Adblock Plus 1.1 or higher).

从上面可以看出,两个管道 || 用于匹配域的开头。