View Single Post
Old 02-26-2012, 09:14 AM   #9
mmat1
Berti
mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.
 
mmat1's Avatar
 
Posts: 1,196
Karma: 4985964
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
New S/R issue ?

I got some Text withing the EPUB as follows:

Code:
<i>[Some Footnote]</i>
I'm going to replace the tags:
Code:
Search: <i>(\[.*?\])</i>
Replace: <span class="footnote">\1</span>
Regex.dotall, All Html-Files
There are about 100 positions to be changed in the EPUB. I used a step by step replace. Far too late i discovered, that sometimes the replacement is just "<span class="footnote">\1</span>". (\1 is not replaced with the contents of the group.)

After all i counted and found 30 occourrences, where the reference to the group was not resolved.

This will only happen in a "step by step" s/r, not with "replace all"

Last edited by mmat1; 02-26-2012 at 09:27 AM.
mmat1 is offline   Reply With Quote