View Single Post
Old 03-08-2011, 04:03 PM   #4
Faster
Connoisseur
Faster is a glorious beacon of lightFaster is a glorious beacon of lightFaster is a glorious beacon of lightFaster is a glorious beacon of lightFaster is a glorious beacon of lightFaster is a glorious beacon of lightFaster is a glorious beacon of lightFaster is a glorious beacon of lightFaster is a glorious beacon of lightFaster is a glorious beacon of lightFaster is a glorious beacon of light
 
Posts: 61
Karma: 12096
Join Date: Sep 2010
Location: Tasmania
Device: Sony PRS 650
Hi,
In case you're unfamiliar with Regex here's what you would use to insert the 'class=' stuff in the <p> tag:
Select Match case, Minimal Matching and Regular expression. Also Direction 'All' and Look in 'All HTML files'.
FIND: (\<p)(\>)
REPLACE: \1 class="blah blah"\2
Note space between '\1' and 'class...'
For other tags change the 'p' to 'h2' etc and amend "blah blah".

Having said that, there doesn't seem much point doing this if all the <p> tags are using the same rule as you'd just have one css rule for 'p'. Guess I got carried away with a Regex puzzle! Sorry.

Last edited by Faster; 03-09-2011 at 10:44 AM. Reason: Stupidity
Faster is offline   Reply With Quote