From: clc Date: 2006-04-23T22:29:34+09:00 Subject: Re: Scan-like Idiom to Capture a Group as a String Instead of an Array? Oh, I didn't realize you could do that with parallel assignments too. Thanks for the help. ----- Original Message ----- From: To: "ruby-talk ML" Sent: Sunday, April 23, 2006 8:52 AM Subject: Re: Scan-like Idiom to Capture a Group as a String Instead of an Array? > 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(/.../)