-
1. Re: How can I find and change text in Hyperlinks?
John Hawkinson Jul 19, 2011 10:38 AM (in response to BR[1])Wow, I feel like I'm on a roll today. See my earlier post in Carriage return being added to the end of URL hyperlinks, but change the .replace expression:
hls[i].destinationURL = hls[i].destinationURL.replace(/&/g,"%26");You need the /g to indicate "global," that is to do multiple replacements within a single string (URL).
Still untested though!
-
2. Re: How can I find and change text in Hyperlinks?
BR[1] Jul 19, 2011 1:11 PM (in response to John Hawkinson)Thanks, John, it worked just great!
-
3. Re: How can I find and change text in Hyperlinks?
John Hawkinson Jul 19, 2011 4:51 PM (in response to BR[1])Oh, incidently, Harbs has a script that does this with a UI.
http://in-tools.com/downloads/indesign/scripts/ReplaceHyperlinkUrlValues.jsx
It's basically the same thing, but maybe a bit more user-friendly.
-
4. Re: How can I find and change text in Hyperlinks?
BR[1] Jul 22, 2011 8:12 AM (in response to John Hawkinson)It's perfect! Thanks a lot again!
2011/7/19 John Hawkinson <forums@adobe.com>
Oh, incidently, Harbs has a script that does this with a UI.
>
>
http://in-tools.com/downloads/indesign/scripts/ReplaceHyperlinkUrlValues.jsx
>
It's basically the same thing, but maybe a bit more user-friendly.
>


