View Single Post
Old 10-29-2013, 12:10 PM   #5
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
Quote:
Originally Posted by DiapDealer View Post
Obviously if you're trying to match multiple, numbered calibre classes, you'll still need some regex regardless.
I haven't used a Calibre conversion in a WHILE, but last I remembered, it was riddled with lots of calibre### classes. So I just was basing my Regex off of that assumption.

Sometimes people don't post all the information in their examples. Next, they will come back saying:

Quote:
Great, I was able to use that search and replace 255 times!

<p class="timebreak">&nbsp;<br class="calibre1" /></p>\s*<p class="timebreak">

[...]

<p class="timebreak">&nbsp;<br class="calibre255" /></p>\s*<p class="timebreak">
I remember I used to manually look up exactly what each calibre### class did, and then strip it out and/or remove the redundancy in the CSS... one at a time. (Oh, the horrors of my life before Regex)

Last edited by Tex2002ans; 10-29-2013 at 12:13 PM.
Tex2002ans is offline   Reply With Quote