02-07-2010, 01:31 AM
I have a variable which holds only a string, and this string may contain an unlimited amount of urls inside of it. I already have a function I put together that accepts one argument, the URL to shorten, and returns the is.gd shortened url as a string. Now, what I would like to do, is for each long URL in the original string, i would like to run that URL through my shortening function, and replace the long URL with the newly shortened URL. Sorry if it is not clear what I want, go ahead and ask questions.