![]() |
|
#1
|
|||
|
|||
![]()
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). |
![]() |
Tags |
regex, replace |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
abdan | Word VBA | 3 | 01-18-2019 09:38 PM |
How to compare 2 Excel sheets for 100+ matches? | dylansmith | Excel | 5 | 05-22-2017 09:09 PM |
Macro help regex | subspace3 | Word VBA | 1 | 10-15-2014 09:53 AM |
![]() |
gasyoun | Word VBA | 9 | 04-12-2013 04:15 PM |
Regex in Word: Replaced strings are in disorder | chgeiselmann | Word | 0 | 04-26-2009 11:33 AM |