------art_613_5004743.1178072431016
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

I'm new to Ruby, and in a little program I'm writing, I have code like this:

str  '
if /something/.match(str)
    str  something/.match(str)[1]
end

Is there a more elegant way to do this?

Mike Steiner

------art_613_5004743.1178072431016--