View Single Post
Old 11-10-2016, 01:50 AM   #3
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,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by ksimpson1986 View Post
i found the regex code, \(.*?\) this definitely works in finding all the words i need, but i can't figure out the replace code with keeping the english word inside...i feel like (<em>\1</em>) should be working? but it just gives me an italicized "1"...any suggestions?
You forgot to capture the text within parentheses:

Search: \((.*?)\)
Replace: (<i>\1</i>)

You matched the parentheses themselves by using the escaped RED \( \), but forgot to add the actual "capture" parentheses BLUE ( ).

And make sure you save a copy before you Replace using this.
Tex2002ans is offline   Reply With Quote