in reply to Re: Insert text in a string
in thread Insert text in a string

At the very least, you should use a look-ahead to avoid prefixing 'http://' to strings that already have one...
s|href=(?!http://)|href=http://|gi;

-Blake