View Single Post
Old 09-03-2011, 12:00 AM   #1
kmckinley
Member
kmckinley has learned how to read e-bookskmckinley has learned how to read e-bookskmckinley has learned how to read e-bookskmckinley has learned how to read e-bookskmckinley has learned how to read e-bookskmckinley has learned how to read e-bookskmckinley has learned how to read e-bookskmckinley has learned how to read e-books
 
Posts: 15
Karma: 954
Join Date: Aug 2011
Device: NOOK Simple Touch
Replacing multiple tags over 2 lines

I have the following source:

Code:
    <p class="calibre10"><span class="calibre12 bold">15</span></p>

    <p class="calibre2"><span class="calibre4 bold">MAVERICKS</span></p>
I would like to replace all that stuff with
Code:
    <h1>15<br />
    MAVERICKS</h1>
The regular expression for the first line appears to be
Code:
(Find)<p class="calibre10"><span class="calibre12 bold">(\d\d)</span></p>
(Replace with)<h1>\1<br />
Would it be possible to do the search and replace for the second line in the same pass?
kmckinley is offline   Reply With Quote