The pattern regex is as follows:
.Pattern = " \(\[[A-Z][A-Z0-9-&*]*\](,[^\)]+|)\)"
Here are two files for example (don't look at the text, I took it from Internet to have an english doc...):
1) input_example.doc, with a list of references in the text, the form of which is of the pattern above (e.g. " ([ABC], p. 145)");
2) output_example.doc, wich is the same doc with references in footnotes.
I get the output example
using my code, but for that I had to remove the sumary, and to ensure there were not too many references. Otherwise, I'd get the behavior described in the first post...
Well, even if this work doesn't require regex, I'm afraid I'm going to meet the same kind of problem concerning exact positioning of footnotes. So any kind of help appreciated
.
EDIT: 1) Moreover, I'd like to understand what's wrong in my code, in case of...
2) Correction in regex (replace * by + and switch ) with \) at the end).