Hi guys,
to get my colophon data in order, I'm in need to assign an unique ID to every image in my ePub. Is there a quick way to do this either in Sigil or with a regular expression (I could unzip my ePub and then use Textwrangler or Oxygen)?
Situation:
Code:
<img src="somePath/random_filename.jpg" class="someClass" alt="someText" />
<img src="somePath/someother_filename.jpg" class="someClass" alt="someText" />
…
<img src="somePath/another_filename.jpg" class="someClass" alt="someText" />
Desidered result:
Code:
<img src="somePath/random_filename.jpg" class="someClass" alt="someText" id="image001" />
<img src="somePath/someother_filename.jpg" class="someClass" alt="someText" id="image002" />
…
<img src="somePath/another_filename.jpg" class="someClass" alt="someText" id="image634" />
(Since I switched to mac, I had to renounce to Powergrep, that would be able to do this in a second. How I miss it

)