require 'uri'text = %{"testhttp://www.example.com/, and be sureto check out my weblog at http://www.example.com/blog/. Email me at href="mailto:b@e.com">b@e.com.}p URI.extract(text)