Quote:
Originally Posted by hobnail
I don't understand why this isn't working; my search string is:
<a id="Page_([xvi]+)|([\d]+)" class="x-ebookmaker-pageno" title="\[([xvi]+)|([\d]+)\]"></a>
When the file contains
<a id="Page_iv" class="x-ebookmaker-pageno" title="[iv]"></a>
and I click on the Find button, it highlights only
<a id="Page_i
What's wrong with my regexp?
|
The "|" is basically an "or". Your regex is basically search for matches to one of:
Code:
<a id="Page_([xvi]+)
Code:
([\d]+)" class="x-ebookmaker-pageno" title="\[([xvi]+)
I think you want:
Code:
<a id="Page_([xvi]+|[\d]+)" class="x-ebookmaker-pageno" title="\[([xvi]+|[\d]+)\]"><\/a>
The two groups are the page number and title in either of the formats.