From: Ted Han Date: 2008-10-09T07:20:11+09:00 Subject: Re: Auto-recognize links? I think everything you'd need to do to validate and produce links should be in the core URI class: http://www.ruby-doc.org/core/classes/URI.html Josh Pigford wrote: > In PHP I've got a few functions that will turn data into links based on > if it recognizes "http://", "www." etc etc. > > How can I do this with Ruby? > > For instance, in a forums setting if a user posted a link to something > like http://example.com > > It'd basically turn it into a clickable link: > <a > href="http://example.com">http://example.com</a> -- Posted via http://www.ruby-forum.com/.