Quote:
Originally Posted by DiapDealer
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
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".