From: "John W. Long" Date: 2006-05-25T01:50:20+09:00 Subject: Re: RegExp Problem John W. Long wrote: > That makes perfect sense. So how do I get it to do what I want? I have something that works now: re = /(?:"[^"]*?"|'[^']*?')!/ md = re.match %{ "this looks like "fun"!" } md[0] #=> "\"fun\"!" md = re.match %{ 'this looks like 'fun'!' } md[0] => "'fun'!" Still, it makes me wonder if it's possible to do it with back references. -- John Long http://wiseheartdesign.com http://radiantcms.org