View Single Post
Old 11-10-2010, 08:21 AM   #1
Rand Brittain
Bookmaker
Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.
 
Posts: 427
Karma: 2143650
Join Date: Sep 2010
Device: Cybook Opus
Converting Capitals -> Italics

I'm looking at a Project Gutenberg text that's used capital letters to stand in for italics, and I'd like to change it to display those italics instead. Is there a way to use regular expressions to change all words in all-caps to lower-case and slap a <i></i> tag around them? (I guess I'd have to remove it from every use of "I", but that's a simple find-replace.)
Rand Brittain is offline   Reply With Quote