Hi -- On Fri, 6 Jul 2007, Jos Backus wrote: > On Fri, Jul 06, 2007 at 09:50:13AM +0900, Ari Brown wrote: >> Ok. I have a major pattern matching problem. In essence, right now the word >> i am trying to match is "hello", WITH double quotes around it. >> >> Why isn't this working? It always hits the else part of my case-when loop. >> >> write_file = open('albuminfo.txt', 'w') >> lines.each do |line| >> puts line >> case line >> when line =~ /^(.+)$/ > > when /^(.+)$/ Or that :-) (see my post which mentioned two solutions but not this one) David -- * Books: RAILS ROUTING (new! http://www.awprofessional.com/title/0321509242) RUBY FOR RAILS (http://www.manning.com/black) * Ruby/Rails training & consulting: Ruby Power and Light, LLC (http://www.rubypal.com)