View Single Post
Old 05-22-2013, 07:47 AM   #10
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: 28,682
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by cybmole View Post
it was very reliable before so long as you used replace all and not just replace. not just for this but also for upgrading/ downgrading header tags e.g. <h1 to <h2.
The heart wants what the heart wants: I get that. But for promoting/demoting headers, I heartily recommend moving toward something like...
Find:
Code:
<(/?)h1([^>]+)?>
Replace:
Code:
<\1h2\2>

Last edited by DiapDealer; 05-22-2013 at 07:55 AM.
DiapDealer is offline   Reply With Quote