我有很多 URL,大约 100K 大。
它看起来像这样:
blog.example.com/ilovecats/2011/02/10/the-bling-ring/
blog.example.com/fas24
blog.example.com/morg
blog.example.com/whistlermoar/
blog.example.com/punny/
blog.example.com/punny/2012/10/blog.example.com/punny/2012/10/01/my-mom-is-alien/blog.example.com/anniesblog/2012/10/12/i-
_
_丢失我的iphone
blog.example.com/anniesblog/2012/10/page/3/
blog.example.com/anniesblog/2012/10/page/4
blog.example.com/anniesblog/2012/10/page/ 5
blog.example.com/alfva/blog.example.com/dudewheresmycar/blog.example.com/mynameisbilly/blog.example.com/mynameisbilly/page/23/blog.example.com/anotherflower/category/axel/blog
_
_
_
_
_ .example.com/naxramas/
blog.example.com/angeleoooo/blog.example.com/angeleoooo/2011/01/01/blog.example.com/angeleoooo/2011/01/01/happynew-years/
_
_
我希望删除 example.com/username/ 之后的所有内容,因此剩余列表将如下所示:
blog.example.com/ilovecats/blog.example.com/fas24
blog.example.com/morg
blog.example.com/whistlermoar/blog.example.com/punny/blog.example.com/anniesblog/blog.example
。
_
_
_
com/alfva/
blog.example.com /
dudewheresmycar /blog.example.com/mynameisbilly/blog.example.com/anotherflower/blog.example.com/
naxramas /
blog.example.com /
angeleoooo /
我听说 Regex 是一种这样做的方式,所以我已经在谷歌上搜索了几个小时,但我的时间已经不多了。
有人能帮我吗?
(安装了记事本++)