Find/Replace but Increment Value

Posted by KR Kahn on Stack Overflow See other posts from Stack Overflow or by KR Kahn
Published on 2009-07-09T18:12:51Z Indexed on 2010/04/14 19:03 UTC
Read the original article Hit count: 461

Filed under:

Hello,

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 intelligent way than simply copying and pasting repetitive file names.

I would love to be able to replace and increment a file name on each replace, starting at a base file name of my choosing. For example...

...images/69thStreet010.jpg
...images/69thStreet011.jpg
...images/69thStreet012.jpg

Basically performing a CTRL+F and REPLACE '69thStreet010.jpg' with...

...images/xyz001.jpg
...images/xyz002.jpg
...images/xyz003.jpg

And so on until I want it to stop. Anyone here have any suggestions? Thanks a lot!

-K.R.

UPDATE: I should also add, I'm using Notepad++ to edit my files.

© Stack Overflow or respective owner

Related posts about html