View Single Post
Old 05-06-2023, 06:56 AM   #3
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
I'd tweak it slightly with a much more narrow:

Find: <body id="[^"]+" class="calibre">
Replace: <body class="calibre">

Find: html#[^"]+"/>
Replace: html"/>

Those 2 regexes are kind of saying:
  • "Hey! Keep going as long as you're NOT a quotation mark!"

It's a little bit safer than .*?, which can sometimes go crazy if you weren't expecting it.

Last edited by Tex2002ans; 05-06-2023 at 07:00 AM.
Tex2002ans is offline   Reply With Quote