Search Replace extended in a html file

Posted by Fake4d on Super User See other posts from Super User or by Fake4d
Published on 2012-03-22T15:09:50Z Indexed on 2012/06/19 21:19 UTC
Read the original article Hit count: 156

Filed under:
|
|

i have a little question. I have a big html file and want to replace lots of things inside a lot of times. The only problem i cant solve is a replace with a variable.

Example:

<image src="start_files\0002.jpg" style="width:216pt; height:162">

should be transformed in

<a href="start_files\0002.jpg" target="_blank"><image src="start_files\0002.jpg" style="width:216pt; height:162"></a>

do you have an idea how to do it?

I have a windows system with Notepad2 and Notepad++ and i could install a new tool if needed. (like Windows SED). The best solution would be a batch solution where i can add other transformations.

Hope you have got good ideas!

Thanks forward, Fake4d

© Super User or respective owner

Related posts about search

Related posts about replacement