Using beanshell in a macro
Submitted by Wednesday, 17 February, 2010 - 21:44
on
I'm trying to write a macro to renumber footnotes links in a document - it's pretty simple: I just need to capture the previous number in a backreference, add an offset to it, and rewrite the link with the result. I've got the regex search worked out, but I'm completely in the dark on the syntax for the replacement. This looks like a situation where using a beanshell snippet would be appropriate, but I'm no java programmer.
What I need is:
[value in backreference plus the offset number]
Any help would be appreciated.