From: 7stud -- Date: 2011-08-11T15:41:06+09:00 Subject: Re: Odd regexp behavior Also, str = "hello\nhello" str.scan(/^hell/) {|match| p match} puts "-" * 20 str.scan(/\Ahell/) {|match| p match} --output:-- "hell" "hell" -------------------- "hell" -- Posted via http://www.ruby-forum.com/.