View Single Post
Old 12-16-2011, 02:36 AM   #2
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Your code works fine in my small test case.

Try the following. Probably better, more smart ways will be placed below my answer, but it should work:

find:
<sup><a href="" name="">([0-9]{1,})</a></sup>

replace:
<sup><a href="../Text/Foreword.xhtml#note\1" name="ref\1">\1</a></sup>

I tested it in Sigil 0.4.9.02 and there it works. However, I must point out that in your initial code there is missing an equal sign in the name part.
Toxaris is offline   Reply With Quote