View Single Post
Old 01-28-2011, 07:20 AM   #8
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
Quote:
Originally Posted by Manichean View Post
and the replacement string
Code:
\g<footnote> \g<text>
The caveat is that I haven't tested it. When you test the regular expression in the wizard, the text from the first asterisk to the end of the footnote should be highlighted.
The replacement needs to be slightly different from that I think:
Code:
'('+\g<footnote>+') '+\g<text>
The parentheses may need to be escaped by a '\' if you get an error. I haven't tested it either, but I'm pretty sure the first won't work without the plus signs, and of course you want to wrap the footnote in some identifier.
ldolse is offline   Reply With Quote