View Single Post
Old 09-12-2019, 04:58 PM   #8
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
Code:
\b(T)\b
in regex mode should catch most cases (replace with I).
I was a little hesitant with giving the Regex \bLetter\b, although in this case it might work okay.

I've gotten burned too many times on words like "can't", where the apostrophe counts as the word boundary, so the single 't' gets caught up. And then I only notice much too late after I Replace All and moved on. :P

Quote:
Originally Posted by DiapDealer View Post
Nothing's going to be perfect--like if there's markup dividing an actual word, for instance (not that I can think of any good reason why there should be).
Maths:

<i>x</i>-axis
sin<i>x</i>
x<sup>2</sup>y<sup>3</sup>
The <i>k</i>th number.

or emphasis on part of word:

<i>non</i>existent

That's just the few cases off the top of my head. :P

Last edited by Tex2002ans; 09-12-2019 at 05:03 PM.
Tex2002ans is offline   Reply With Quote