From: ts Date: 2006-08-16T02:20:42+09:00 Subject: Re: || and RegEx >>>>> "a" == aidy writes: a> case line a> when /^Provinces:$/ || /^Town:$/ When you write this, ruby first execute ||, something like moulon% ruby -e 'p /^Provinces:$/ || /^Town:$/' /^Provinces:$/ moulon% fatally the result is /^Provinces:$/, then it will make the test a> task = :provinces a> when /^Provinces:$/ && /^Town:$/ Same here, it first evaluate && moulon% ruby -e 'p /^Provinces:$/ && /^Town:$/' /^Town:$/ moulon% the result is /^Town:$/, then it make the test Guy Decoux