Thread: Regex Question
View Single Post
Old 01-26-2011, 12:23 AM   #2
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
Based on the examples provided I'm not sure why _(\w+?)_ and replace with <i>\1</i> won't work for you.

Have you tried enabling 'Italicize common cases' under the Heuristics section of the conversion settings? That feature is supposed to handle this for you automatically. If you have cases where it isn't working you can open a bug with an example file at bugs.calibre-ebook.com.
ldolse is offline   Reply With Quote