请教正则表达式提取字符串的问题2021-02-17 06:17vveron20082021-02-17 06:17网址变换有一堆例如hipda.com/abc123.html要转换成hipda.com/abc123/abc123.html编辑器里边如何批量替换呢?夜夜空2021-02-17 06:23不一定正则,可以提取后面,然后字符串拼接 iOS fly ~风风之涛2021-02-17 06:50如果是vi的话:%s/hipda.com\/abc123.html/hipda.com\/abc123\/abc123.html/如果是sed的话sed -i "s/hipda.com\/abc123.html/hipda.com\/abc123\/abc123.html/g" test.tst7778800992021-02-17 07:09