View Single Post
 
Old 03-03-2019, 02:49 PM
totoMSOF totoMSOF is offline Windows 7 64bit Office 2010
Novice
 
Join Date: Mar 2019
Posts: 11
totoMSOF is on a distinguished road
Default

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).
Attached Files
File Type: doc input_example.doc (52.5 KB, 9 views)
File Type: doc output_example.doc (54.0 KB, 9 views)
Reply With Quote