Quote:
Originally Posted by AlwaysNew
Hi, can anyone help in replacing this class with nested code inside, throughout multiple documents?
From
Code:
<p class="p23"><span id=“ [chapter number] ”></span> [chapter title] </p>
To
Code:
<h1 class="p23"><span id=“ [chapter number] ”></span> [chapter title] </h1>
Thanks!
|
Quick and dirty but works.
Question does your span id have spaces around the number?
Search:
Code:
<p class="p(\d+)"><span id=“(\d+)”></span>(.*?)</p>
Replace:
Code:
<h1 class="p23"><span id=“\1”></span>\2</h1>
bernie