From: Hassan Schroeder Date: 2008-07-04T11:23:54+09:00 Subject: Re: Regular expressions and long text Very late to this thread, but... On Sat, Jun 21, 2008 at 2:23 AM, Bryan JJ Buckley wrote: > You can split on a regex for a full-stop followed by (optional) whitespace. > > >> str.split(/\.\s?/) > => ["Ruby is great", "We all know that"] str="Dr. Feelgood will meet you at the corner of Foo St. and Bar Dr. tonight at 8:00; bring $2.98 -- exact change -- to resolve the 5.5% interest you owe." :-) -- Hassan Schroeder ------------------------ hassan.schroeder@gmail.com