View Single Post
Old 09-14-2014, 02:40 AM   #7
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
This is meant to only target the css, whether in a stylesheet or in <style> tags. It searches for the font-weight or -style, and ignores what sgc-class it actually is.

To fix the text (my preference), I'd use:

Find:
Code:
<span class="(?:(b)old|(i)talic)">([^<>]*)</span>
Replace:
Code:
<\1>\2</\1>
And revert it back to <b> and <i> tags.
eschwartz is offline   Reply With Quote