From: Chris Dutton Date: 2002-05-19T11:47:59+09:00 Subject: Re: Ruby regex question In article <20020519002056.GA12152@panoptic.com>, Dossy wrote: > x, y = str.match /.../ .slice(1..-1) This is ambiguous. /.../ has no method #slice. Instead: x, y = str.match(/.../).slice(1..-1) or... x, y = str.match(/.../)[1..-1] or, just for the heck of it... x, y = (str.match /.../)[1..-1]