The new regex-function works great, the section numbering was just something what I needed. However, I stumbled onto some expressions which were not handled properly:
Code:
<h1 class="center"><a href="chapter001.xhtml#start">Test</a></h1>
<h1 class="center" id="" ><span class="something">Test</span></h1>
<h1 class="center" id="" ><b><span class="something">Test</span></b></h1>
The default find construct is not enough:
Code:
(<h1[^<>]*>)([^<>]+</h1>)
I tried to enhance it but either got no match at all, or, very greedy, it selected almost everything
Can somebody teach me how to select "just enough"?