From: Unmesh Gundecha Date: 2008-06-09T19:05:39+09:00 Subject: String extraction using RegExp Hi, I want to extract "New User Registration" and "New User" from a string as follows. I am using RegExp for this. r1 = Regexp.new('\(\"([^\.]*)\"\)') matches = r1.match('Page("New User Registration").Frame("New User")') puts !matches.nil? puts matches[0] puts matches[1] puts matches[2] However above code returns only "New User Registration". Is there any way to find the next match. Is something missing in this code? Please advice. Thanks in advance, Unmesh -- Posted via http://www.ruby-forum.com/.