如何删除第三个斜杠(/)后面的所有内容:
women/clothes/pants-shorts/sandy-beach-destroyed-denim-shorts
这样该行就变成:
sandy-beach-destroyed-denim-shorts
答案1
寻找 :
^[^/]*/[^/]*/[^/]*/(.*)$
用。。。来代替 :
\1
如何删除第三个斜杠(/)后面的所有内容:
women/clothes/pants-shorts/sandy-beach-destroyed-denim-shorts
这样该行就变成:
sandy-beach-destroyed-denim-shorts
寻找 :
^[^/]*/[^/]*/[^/]*/(.*)$
用。。。来代替 :
\1