From: dblack@... Date: 2006-04-23T21:52:54+09:00 Subject: Re: Scan-like Idiom to Capture a Group as a String Instead of an Array? Hi -- On Sun, 23 Apr 2006, clc wrote: > Well, now, that's just embarassing. Thanks! I might have misunderstood your original question, but if you're happy with a one-element array rather than a string, you could also do: text, = str.scan(/.../) David -- David A. Black (dblack@wobblini.net) Ruby Power and Light, LLC (http://www.rubypowerandlight.com) "Ruby for Rails" PDF now on sale! http://www.manning.com/black Paper version coming in early May!