Automate Creation of Hyperlinks
An InDesign CS2 JavaScript. Put it into the "Version 4.0 Scripts" folder to make it work in up-to-date versions of InDesign.
Finds a string in text and creates a hyperlink based on the contents of the string. This script employs a hybrid approach to finding and changing text, using both JavaScript regular expressions and InDesign's search method.