View Single Post
Old 01-01-2011, 11:27 AM   #3
huebi
Zealot
huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!
 
Posts: 121
Karma: 5070
Join Date: Dec 2010
Device: none
<h1> is for first level, <h2> for second level down to level 6.

If you want to change <h2> into <h3> use the following regex:

search:
Code:
<h2(.*>)(.*)</h2>
replace:
Code:
<h3\1>\2</h3>
options: minimal matching, search in all html files

but be careful: if you want to change now all old h3 to h4 you cant cause you have now new h3 which will be converted to. So you have to start at the bottom going to the top when changing the levels in more then one hierarchy.
huebi is offline   Reply With Quote