[英]Match only for 2 level deep pages
所以只需要匹配以 .html 結尾的兩層深的頁面。
比賽
http://www.example.com/bedroom/beds/select-queen-platform-bed.html
不匹配
http://www.example.com/bedroom/select-queen-platform-bed.html
http://www.example.com/bedroom/
http://www.example.com/
http://www.example.com/bedroom/beds/level3/select-queen-platform-bed.html
所以基本上它應該匹配 domain-name.com/level-1/level-2/page-name.html
我現在的表達與其中一些可能性不匹配。 我應該使用什么?
當前正則表達式
/*/.*html$
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.