View Single Post
Old 09-05-2021, 03:27 AM   #18
xversion1
Enthusiast
xversion1 ought to be getting tired of karma fortunes by now.xversion1 ought to be getting tired of karma fortunes by now.xversion1 ought to be getting tired of karma fortunes by now.xversion1 ought to be getting tired of karma fortunes by now.xversion1 ought to be getting tired of karma fortunes by now.xversion1 ought to be getting tired of karma fortunes by now.xversion1 ought to be getting tired of karma fortunes by now.xversion1 ought to be getting tired of karma fortunes by now.xversion1 ought to be getting tired of karma fortunes by now.xversion1 ought to be getting tired of karma fortunes by now.xversion1 ought to be getting tired of karma fortunes by now.
 
Posts: 46
Karma: 4245188
Join Date: Nov 2019
Device: Kindle
Quote:
Originally Posted by Frenzie View Post
@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:
Code:
<p \3\2
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?

Last edited by xversion1; 09-05-2021 at 04:03 AM.
xversion1 is offline   Reply With Quote