Replacing ^ with \b is no good because of the presence of
links as well as naked urls in the text. My previous reply
shows why. You're right that the problem is urls at the
beginning of a line in the middle of a string. I've tried
both the m and s modifier with no luck. Like I said, it's
baffling.