View Single Post
Old 05-06-2023, 07:00 AM   #5
Dr.Strangelove
Member
Dr.Strangelove began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Mar 2019
Location: Hamburg/Germany
Device: Kindle Paperwhite 7. Generation
Quote:
Originally Posted by Tex2002ans View Post
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 regex 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.
works also, thanks!
Dr.Strangelove is offline   Reply With Quote