If you have two or more links in a single paragraph, only the first link will be included, and all the text between the two links will be lost. The problem is a greedy regular expression which matches all the way through to the end of the last link.