Quantcast
Channel: MobileRead Forums
Viewing all articles
Browse latest Browse all 50080

Regex Function: Italicize a list of words

$
0
0
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


Viewing all articles
Browse latest Browse all 50080

Latest Images

Trending Articles



Latest Images