From: Dossy Date: 2002-07-23T20:07:09+09:00 Subject: Re: Strings and member-operators On 2002.07.23, David Alan Black wrote: > class String > def stripQuotes > /^("?)(.*?)(\1)$/.match(self)[2].strip > end > end Very cool. I wonder why you had to wrap \1 in parens, though. Just for visual symmetry, or did it only work that way? -- Dossy -- Dossy Shiobara mail: dossy@panoptic.com Panoptic Computer Network web: http://www.panoptic.com/ "He realized the fastest way to change is to laugh at your own folly -- then you can let go and quickly move on." (p. 70)