I'm trying to match all the subdirectories of the match
directory but excluding the match
directory.
我正在尝试匹配匹配目录的所有子目录,但不包括匹配目录。
www.domain.com/match/subdirectory1 #good
www.domain.com/match/subdirectory2 #good
www.domain.com/match/subdirectory2/subdirectory3/ #good
www.domain.com/match/ #bad
Thanks!
1 个解决方案
#1
2
Try this:
/www.domain.com\/match\/([0-9A-Za-z]+\/?)+/
Edit: for multiple directories after match directory
编辑:匹配目录后的多个目录
#1
2
Try this:
/www.domain.com\/match\/([0-9A-Za-z]+\/?)+/
Edit: for multiple directories after match directory
编辑:匹配目录后的多个目录