Find/Replace but Increment Value

后端 未结 7 696
庸人自扰
庸人自扰 2020-12-31 18:35

I have an .HTML file that has many photos attached to it for displaying a photo gallery. I\'m replacing old photos with new ones, and I\'m thinking there must be a more inte

7条回答
  •  天涯浪人
    2020-12-31 19:02

    Look into the Column Editor feature within Notepad++. You can do a block select on the area you want to increment and then give it a starting/ending range and you're all set.

    I was in a similar situation recently. I did a little bit of regular expression search/replace to get my filenames into my "default" format with some padded "000" where I wanted my incrementing to start. After that, I used Shift+ALT to block select the 000s and used the editor to do the rest of the work.

提交回复
热议问题