View Single Post
 
Old 10-31-2021, 04:51 PM
davidjm davidjm is offline Windows 10 Office 2016
Novice
 
Join Date: Jun 2018
Posts: 18
davidjm is on a distinguished road
Default

Hi,
working on this I've replaced
Code:
    .Text = "[0-9]{3}–[0-9]{1}"
with

Code:
     .Text = "[0-9]{2,3}–[0-9]{1,2}"
Which produces better results for references that span more than 1 page and keeps original format.

Was thinking if I just add 2 to any numeric string ("[0-9]{2,3}") regardless of if it was part of a range or an individual page number that would reduce the whole process to 1 .find . Is that correct? What would be the script
Thanks for any help
Reply With Quote