{"name":"gist: 866037","desc":"replace URL-like strings with HTML link elements","actor":"oslego","url":"https://gist.github.com/866037","snippet":"function replaceURLWithHTMLLinks(text) {\n     var exp = /(\\b(https?|ftp|file):\\/\\/[-A-Z0-9+&@#\\/%?=~_|!:,.;]*[-A-Z0-9+&@#\\/%=~_|])/ig;\n     return text.replace(exp,\"<a href='$1' target='_blank'>$1</a>\");","actor_gravatar":"8e3972b68c4ef18a540e356b13f5265b","action":"update"}