From: Dave Bass Date: 2008-07-05T20:20:20+09:00 Subject: Re: Regexp help please Or: line=%<"first" and "second"> line =~ /(".*?")[^"]*(".*?")/ puts $1 # => "first" puts $2 # => "second" The [^"]* means "zero or more characters that aren't a doublequote character". Dave -- Posted via http://www.ruby-forum.com/.