From: Emil Kampp Date: 2011-03-25T09:32:46+09:00 Subject: Re: Regexp, matching only the content within parentheses I have upgraded the regular expression somewhat, to enclose other similar situations, but I still have the problem of not getting the last parenthesis (the one completely ending the statement) included in the expression (while not grabbing anything beyond the parentheses). This is the upgraded expression: ((\()([^(]*)\/\/([^)]*)(\))) // Emil -- Posted via http://www.ruby-forum.com/.