Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-14-2016, 01:26 PM
WeyldFalcon WeyldFalcon is offline Dissecting a hyperlink with Find Replace Wildcards Windows 10 Dissecting a hyperlink with Find Replace Wildcards Office 2013
Novice
Dissecting a hyperlink with Find Replace Wildcards
 
Join Date: Nov 2016
Posts: 3
WeyldFalcon is on a distinguished road
Default Dissecting a hyperlink with Find Replace Wildcards

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?
Reply With Quote
 

Tags
find, hyperlink, wildcards

Thread Tools
Display Modes


Similar Threads
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

Other Forums: Access Forums

All times are GMT -7. The time now is 04:54 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft