Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我尝试在我的网站中实现 Sphider 网络搜索并开始编制索引。有 2 种意见:URL 必须包含 / URL 不得包含。我必须使用正则表达式,并且想要索引一个我知道链接结构的网站,并且我想抓取所有包含的 URLhttp://example.com/frage/....
http://example.com/frage/....
当我输入正则表达式字段*/frage/时,它不起作用,因为禁止访问索引。我也试过*\/frage和*\/frage\/。
*/frage/
*\/frage
*\/frage\/
我该如何处理?
如果其他人正在寻找解决方案,我想出了:
/example.com(\/?)($|frage)/