From: Mat Schaffer Date: 2007-01-04T22:44:52+09:00 Subject: Re: scan string w regex .. and HNYTAOY ! On Jan 4, 2007, at 8:06 AM, 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. /me slaps his forehead agreed.... -Mat