From: Phrogz Date: 2007-04-28T14:45:08+09:00 Subject: Re: using Ruby for line-wrapping On Apr 27, 3:25 am, Chad Perrin wrote: > I don't necessarily need code examples -- but if anyone has ideas for a > best approach to specifying a line wrap width (breaking between words > for lines no longer than a specific column width) for output from a Ruby > script, I'd love to hear about it. See question #5 in Quiz #113: http://www.rubyquiz.com/quiz113.html Also relevant are some of the regexp used in the thread "halving a string": http://groups.google.com/group/comp.lang.ruby/browse_frm/thread/b14f2e9a15eaed9b/f94e696b8b9ba2d9?lnk=gst&q=halving+a+string&rnum=1#f94e696b8b9ba2d9