Quote:
Originally Posted by Frenzie
@poire-z Mentioned that it'll suffice to remove the ID from the P. But I'd already expanded on my regex above. Luckily it didn't take very long.
For example, here in the calibre ebook editor:
Find:
Code:
<p id="([a-z0-9]*)"( class="footnotes?"><a href="[a-z0-9]*\.html#[a-z0-9]*" id="([a-z0-9]*)")
Replace:
Mode: regex
All text files
I think that's correct, yes. The only problem is you don't want to be doing that 600 times. 
|
Wonderful! Thanks!
But I don't know why this trick doesn't work on chapter titled "Mvouhvv Igvsj-Kamq" (can only find it using Ctrl+F, the table content doesn't show the same name). Ironically, it's where I'm reading.
Edit: I found the reason. The <a... of this chapter goes like this:
Quote:
<a href="part0012_split_000.html#mah0003088"
|
They have a special character "_" so "a-z0-9" doesn't include it. I just add "_" (like this "a-z0-9_"). I know I just got lucky that it happens to be right. Could you please show me how to get all characters in the search so next time I won't miss anything?