From: Matthew Bloch Date: 2010-06-23T00:47:26+09:00 Subject: Re: Extract value On Wed, 2010-06-23 at 00:36 +0900, Manuel Manu00 wrote: > Hello > > I would like to parse or regexp the following string : > > matched = /google_ad_client\s*=\s*\"([^"]+)\"/.match(string) google_ad_client = matched ? matched[1] : nil seems flexible-ish, and might do what you want. -- Matthew