View Single Post
Old 06-10-2012, 03:16 PM   #3
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,615
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Find: (?<=\b\p{Lu})([^\s]+)(?=[^<>]*</h2>)
Replace: \L\1\E

Will pretty much title case anything between <h2></h2>.
It probably won't work if you have embedded <span>, <b>, <i>, or <br /> stuff between the <h2> tags, but other than that, it's fairly fool-proof.

EDIT: Fool-proof for stuff that's ALL CAPS to begin with, that is.

Last edited by DiapDealer; 06-10-2012 at 05:42 PM.
DiapDealer is online now   Reply With Quote