From: James Edward Gray II Date: 2005-09-14T23:38:14+09:00 Subject: Re: Quick and dirty word wrapping. On Sep 14, 2005, at 9:26 AM, Erik Terpstra wrote: > In case anyone needs it, > > str = 'This is a test of the emergency broadcasting services' > str.scan(/(.{1,30})(?:\s+|$)/) > > => [["This is a test of the"], ["emergency broadcasting"], > ["services"]] Dang that's cool! I'm still puzzling out how that works... James Edward Gray II