View Single Post
Old 04-06-2023, 02:49 PM   #17
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,622
Karma: 9500498
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Quote:
Originally Posted by DNSB View Post
Unfortunately, your regex does horrible things if you have nested spans:
Well, I wasn't claiming that my regex was a one-stop fix for the entire book. I could only go by the sample he provided and I did not spot a "<span class=text_17">" class in the example.

It's more of a multi-step process, which is why I further stated "Then look at what is leftover and figure out what it does and either leave it, replace it or remove it." But at each step, you get to see what is being removed and if it is appropriate to remove it.
Karellen is offline   Reply With Quote