From: Brian Candler Date: 2011-05-13T05:39:47+09:00 Subject: Re: Email Parsing Robert Johns wrote in post #998352: > How would I only pull links from the email's body "Links" to me implies that this is an HTML email. In that case, just parse the body with an HTML parser (e.g. nokogiri). It can easily pull out all the A (anchor) tags with their href attributes. If it's plain text, but contains URLs like http://..., then you can match the body against a regexp. e.g. p body.scan(%r{\bhttps?://\S+}) -- Posted via http://www.ruby-forum.com/.