From: awushu@... Date: 2004-12-16T09:57:15+09:00 Subject: Re: Regex extraction Scott Rubin wrote: > First, in ruby, how do I extract parts of a regex? > > The other thing I don't know how to do is replace things like & with &. require 'cgi' CGI.unescapeHTML("&") # => "&" For extracting parts of the match, try a, b, c = /(.)(.)(.)/.match("abc").captures -awu