From: Emil Kampp Date: 2011-03-25T07:31:52+09:00 Subject: Regexp, matching only the content within parentheses Hi. I'm hoping that someone can give me some pointers. I need to match the content within the parentheses only, from the following string (this is an example string, but the structure is consistent): d_(1)+d_(23) So far I have matched something else using \b to match a closing tic (`), but that doesn't seem to work here: \_\((.+)\b[^)] Best regards // Emil -- Posted via http://www.ruby-forum.com/.