View Single Post
Old 08-14-2021, 10:06 AM   #1
Paulie_D
Connoisseur
Paulie_D began at the beginning.
 
Paulie_D's Avatar
 
Posts: 67
Karma: 10
Join Date: Apr 2011
Device: Kindle 3, Samsung Tab 4
Regex Function: Italicize a list of words

I have a Saved search that will wrap a designated word in an <i> tag.

This is mainly used for styling ship names where the author has not done so (I'm particular)!

However, doing this one by one seems inefficient to me so I am thinking that if I could create a list of the required words I could just run the function once and it would rattle off all the changes in one go.

All I would have to do is compile the list of words and "Robert is your father's brother".

Unfortunately, my skills with regex functions are, at best, terrible so any assistance would be much appreciated.

FWIW my current Search is

Code:
Find: (Designated String)(?!</i>)([^s(\w)])

Replace: <i>\1</i>\2
Paulie_D is offline   Reply With Quote