View Single Post
Old 09-19-2014, 03:07 PM   #4
keele
Junior Member
keele began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Sep 2014
Device: Kindle
Quote:
Originally Posted by DiapDealer View Post
If the numbers in the calibre class names won't ever change, then:

Code:
<p class="calibre2"><img src="index-\d+_\d.png" class="calibre1"/></p>
in regex search-mode to find.

Sorta need to know what you want to replace it with to know what to capture to build the replace expression.
Thanks a lot, that worked pefectly, I just needed to remove a watermark someone put on a copyright free ebook. Quite viciously though, as an image file. 894 occurences where swipped! Thanks a lot.

Quote:
Originally Posted by eschwartz View Post
Also, if you plan on doing this a lot, you might want to read a regex guide. The most helpful one I have found (and which managed to drill regex into my head ) is this: http://regular-expressions.info
I took a peek and it looked very exhaustive. Unfortunately, I'm but an amateur programmer, barely able to make a Javascript function, regular expressions are a whole new world to me, it's not the first time I heard of it and I hope I'll be able to master it because it really seems to be a powerfull "tool".
keele is offline   Reply With Quote