Yeah my bad, I added .* which is greedy which means that it matches as much as possible, so it "eats" any previous url, to make it non-greedy use .*?

\K resets the starting point of the reported match.
You can read about it there: http://www.phpfreaks.com/blog/pcre-regex-spotlight-k


#mircscripting @ irc.swiftirc.net == the best mIRC help channel