Fixed regex not handling multiple links (use regex from https://gist.github.com/jbroadway/2836900)