str = "207.46.13.53 - - [21/Apr/2010:04:05:29 -0600] \"GET
/dualcredit/courses/general.php HTTP/1.1\" 200 27731 \"-\" \"msnbot/2.0b
(+http://search.msn.com/msnbot.htm)\"\n"

str.scan(/^ .* $/x) do |match|
  puts match
  puts '-' * 20
end


--output:--
207.46.13.53 - - [21/Apr/2010:04:05:29 -0600] "GET
--------------------
/dualcredit/courses/general.php HTTP/1.1" 200 27731 "-" "msnbot/2.0b
--------------------
(+http://search.msn.com/msnbot.htm)"
--------------------

-- 
Posted via http://www.ruby-forum.com/.