View Single Post
Old 03-18-2016, 12:07 AM   #11
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
I haven't hit the anchor one, but for the rest, I usually use Diap's Editing Toolbag. Much easier than trying to wrap my brain around the regex.

For the last one, why do you care about matching the close tags? Just fixing the opening should be enough. So:

Code:
text: <i class="italic" style="margin:auto;padding:auto;font-size=1em;">
replace: <i[^>]+>
   with: <i>
 result: <i>
should work the same. Am I missing something?
davidfor is offline   Reply With Quote