记事本怎么样将 http://detail.m.1688.com/page/index.htm?offerId=757000660871这样的地址 批量替换成 https://detail.1688.com/offer/757000660871.html 这样的地址
在这些高级文本编辑器中,你可以使用正则表达式 (regex) 来完成这种复杂的查找和替换。以下是在Notepad++中进行此操作的步骤:
- 打开你的文件在Notepad++中。
- 按Ctrl+H打开"查找和替换"对话框。
- 在"查找"框中,输入
(http://detail\.m\.1688\.com/page/index\.htm\?offerId=)(\d+)
- 在"替换"框中,输入
https://detail.1688.com/offer/\2.html
- 确保"正则表达式"选项被选中。
- 点击"全部替换"。
这将会将所有的 http://detail.m.1688.com/page/index.htm?offerId=数字
替换为 https://detail.1688.com/offer/数字.html
。