From: William Djaja Tjokroaminata Date: 2002-09-24T04:18:55+09:00 Subject: Re: another easy one... Hi, I think you just had an extra syntax there. c = "C" case c when /[A-Za-z0-9_]/ # no "c =~" here puts "yip!" else puts "nope..." end Regards, Bill ============================================================================ Mark Probert wrote: > That was my original thought: > $ cat blah.rb > c = "C" > case c > when c =~ /[A-Za-z0-9_]/ > puts "yip!" > else > puts "nope..." > end > $ ruby !$ > ruby blah.rb > nope... > $ ruby -v > ruby 1.7.2 (2002-07-02) [i386-mswin32] > -mark.