View Single Post
Old 05-23-2009, 09:12 AM   #7
kacir
Wizard
kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.
 
kacir's Avatar
 
Posts: 3,450
Karma: 10484861
Join Date: May 2006
Device: PocketBook 360, before it was Sony Reader, cassiopeia A-20
suggested [partial] solution in OOo Writer
Find and replace
Find:
_([^_]*)_
find an underscore _, followed by character that is not underscore [^_] that is being repeated as many times as possible * followed by an underscore _. Put characters between underscores into replacement group represented by $1 ()
Replace:
$1
select: More options
check "Regular expressions"
click on replacement expression $1, now click on button Format and select "Italics"

click "replace all"

Please note:
This does not work for italics spanning more than one paragraph.
kacir is offline   Reply With Quote