Re: Regular Expression Help

2012-10-06 Thread Robert Klemme
On Sat, Oct 6, 2012 at 12:25 PM, wrote: > Am 06.10.2012 12:12, schrieb Robert Klemme: > >> On Sat, Oct 6, 2012 at 1:21 AM, wrote: >> >>> 1.9.3-p194 :001 > text = '"--- this is a string ---" = "--- this is a >>> string >>> ---";' >>> => "\"--- this is a string ---\" = \"--- this is a string --

Re: Regular Expression Help

2012-10-06 Thread Robert Klemme
On Sat, Oct 6, 2012 at 1:21 AM, wrote: > 1.9.3-p194 :001 > text = '"--- this is a string ---" = "--- this is a string > ---";' > => "\"--- this is a string ---\" = \"--- this is a string ---\";" > 1.9.3-p194 :002 > text.scan(/"(.*?)" = "(.*?)"/).flatten > => ["--- this is a string ---", "--- t