Find URLs RegEx
Had a need to find various types of links in plain text using javascript and @theozaurus came up with the RegExp goodness after we found the normal online resources lacking a bit. It’s not 100% foolproof but it’ll cover 95% of usual formats we could think of.
(((https?|ftp):\/\/[^\.]|www\.)[^\s]*[^\s\.,])