From: gabriele renzi Date: 2004-03-26T22:24:26+09:00 Subject: Re: [newbie] regexp - match quotation mark il Fri, 26 Mar 2004 13:15:13 +0100, "Einar Buffer" <_ebuffer_@hotmail.com> ha scritto:: >Hi, I'm trying to write a regular expression to match a quotation mark >inside a string. Actually, what I want is to extract the text between two >quotation marks, like this: > >This should be "simple", but I can't do it. > >I want to extract the word simple with a regular expression. > >Thanks a lot! should fit: >> rgx=/"([^"]+)/ => /"([^"]+)/ >> m= rgx.match 'this is my "simple" sting' => # >> m[1] => "simple" read like: match a " and then read any charcater while it is not a " not that it does not handle escaped "