From: Jason Mayer Date: 2007-01-04T22:26:16+09:00 Subject: Re: scan string w regex .. and HNYTAOY ! ------=_Part_6848_6642620.1167917174767 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 1/4/07, James Edward Gray II wrote: > > On Jan 4, 2007, at 5:55 AM, Josselin wrote: > > > forgot to mention what I wwrote until now : > > > >> to_string.split(%r{\r\n\s*}) which gives me teh addresses > >> separated by \r\n , but I missed the addresses separated by spaces > > You can split() on any whitespace characters with: > > to_string.split > > That seems easier than a regex to match an email. > > James Edward Gray II That's definitely easier. And more certain. ------=_Part_6848_6642620.1167917174767--