Quote:
Originally Posted by theducks
Minimal matching ticked.
<p class="western3">(.+)</p>
<h3 class="western3">\1</h3>
I used H3, but you can use any.
class="western3" is optional, usually I want some type of class as ADE does not center headers by default
The above only is safe if western3 is used only on headers OR you step though the document manually Find Next, Replace or Find Next (to skip)
|
This is embarrassing, must cut down on the wine before posting.
The reason I was having problems with particular RE F and R is that there are two headers plus other paragraphs with the same tags, i.e. the one posted and this type.
<p class="western3">Text text text text ....</p>
I wanted to mark the headings CARTA as h2 tags and the others as h3 tags.
The CARTA tags are easy, but once they are done, the only differentiation between these and the other paragraphs using the same tags is that these are all capital letters plus a space between the words.
I was trying to select paragraphs which contain only capital letters, the RE expression posted does the selection but I could not work out the replacement string.
Thanks for your time.
ATB
el.motar