From: Max Williams Date: 2008-07-12T01:31:21+09:00 Subject: Re: Regex to find urls in text? > cfp:~ > cat bin/uris > #! /usr/bin/env ruby > > require 'uri'; protocols = %w[http ftp]; while line = gets; > protocols.map{|pr| URI::extract(line, pr) }.flatten.compact.each{|uri| > puts uri }; end aha, thanks! -- Posted via http://www.ruby-forum.com/.