![]() |
#1
|
|||
|
|||
![]()
Hello I would like to search my doc for a site link (Alt+F9 enabled to see hyperlinks) and fix a bunch of broken links.
sample links: HYPERLINK "https://mysite/" \l "Folder1/Folder2/Folder3/RandomArticle1.htm" HYPERLINK "https://mysite/" \l "Folder1/Folder2/Folder3/Folder4/RandomArticle2.htm" HYPERLINK "https://mysite/" \l "Folder5/Folder7/RandomArticle3.htm" Desired output: HYPERLINK "https://mysite/" \l "NewFolder/RandomArticle1.htm" HYPERLINK "https://mysite/" \l "NewFolder/RandomArticle2.htm" HYPERLINK "https://mysite/" \l "NewFolder/RandomArticle3.htm" I have tried Regex style in the Wildcard Find Replace Find What: ("https://mysite/" \\l ").*(?=/*=)*/(.*\.htm") Replace With: \1/NewFolder/\2 Close to what I want (works in regex) but not in word, my hunch is word does not have look ahead (?=/*=) Long story short I want to clear out data between a point and the last forward slash in the row, how is that done in Word find replace? |
Tags |
find, hyperlink, wildcards |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Using wildcards in Find/Replace to change font/case | angie450 | Word | 2 | 05-26-2016 11:09 AM |
Using wildcards how do I Find and Add to, not replace | Stargehzer | Word | 3 | 01-25-2016 09:14 PM |
Use wildcards to replace some characters | mauuuuu5 | Excel | 2 | 12-12-2015 07:27 PM |
Find & Replace: Wildcards (except this pattern) | tinfanide | Word | 6 | 01-26-2014 06:39 AM |
wildcards in find & replace to reverse word order | jeffk | Word | 3 | 11-11-2012 01:47 PM |