Autolinking URLs

I use ecto for posting, which is pretty cool. I’d like to be able to have it so that it creates links automatically from URLs that I happen to write in. Thus automatically becomes enabling me to just enter a URL in a post. The best method for doing this would have to be regex:

((?<!(<a href="))(?<!(>))((https?|ftp://)|((mailto|aim|svn):)|(file:///)|((?<!://)www\.))[a-zA-Z0-9_$!&%?,#@'/.*+;:=~-]+\w)\.{0}

This will match a URL that isn’t already in an href link. Took me ages to work out. This will also match And not the dot at the end. I’m still working on code that will create links. I think a seperate regex for each type of URL might be useful.

Hamoa BeachGomezHow We Operate