View Single Post
Old 06-19-2019, 05:37 AM   #7
BrokenDynamo
Member
BrokenDynamo began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Dec 2018
Device: none
Find:
<span class="English" lang="en-US" xml:lang="en-US">&lt;page(\d*)&gt;

replace:
<span epub:type="pagebreak" id="page$1" title="$1"></span>

the results that I got from vs code editor is this:
<span epub:type="pagebreak" id="page6" title="6"></span>
(which is my attempt)

but for some reason the saved searches panel in sigil give the same result which is:
<span epub:type="pagebreak" id="page$1" title="$1"></span>

but any regex code work fine in it like .*? but not $1 for some reason.
BrokenDynamo is offline   Reply With Quote