I have a function that, using preg_replace, catches links in a message and replaces them. The problem is that the beginning of the line is always replaced for some reason, a