Regex Arithmetic
I am looking to do some mass-renumbering of ID's in a book in order to insert endnote hyperlinks.
What I want to do is transform something like:
"id012345" .... "id012444"
to
"ref_1" .... "ref_100"
Significant here is that the last digit of the transformed number is not the same as that of the original. (It would actually be the footnote number extracted from the main text where it appears as [1] ... [100] )
Has anyone found a way to do this with Sigil's regex ?
BobC
|