Copy link to clipboard
Copied
I imported an Excel spreadsheet of media coverage into my ID document, which includes hyperlinks. What I'm trying to do is batch edit each hyperlink so instead of showing as "http : / / www(dot)xxx(dot)com" it shows as "Link," but when I do it manually it deletes the entire hyperlink. Is there a better way to do this besides manually for 200+ pieces of coverage?
{Renamed by MOD}
{Link sanitized by MOD}
Copy link to clipboard
Copied
Hi Erica,
Thanks for reaching out. As per your query, you are trying to Batch Change Hyperlinks across the InDesign document. Here is a detailed article about it: https://indesignsecrets.com/batch-change-hyperlinks-across-a-whole-indesign-document.php
Let us know if this helps or if you need any further assistance.
Regards,
Srishti
Copy link to clipboard
Copied
Try this script for batch replacing the actual URL info:
However, I believe that you don't actually wish to change the actual link, just the text "description".
You can do this with a GREP Find/Replace, preserving the actual link.
Now, what the actual GREP FIND code should be is debatable, however, this worked for my simple tests:
(http|https|ftp|ftps)\:\/\/[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(\/\S*)?
Or this one would be more robust:
(?:(?:https?|ftp):\/\/|\b(?:[a-z\d]+\.))(?:(?:[^\s()<>]+|\((?:[^\s()<>]+|(?:\([^\s()<>]+\)))?\))+(?:\((?:[^\s()<>]+|(?:\(?:[^\s()<>]+\)))?\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))?
The REPLACE text would just be:
Link
Find more inspiration, events, and resources on the new Adobe Community
Explore Now