On 3/21/06, Shea Martin <null / void.0> wrote: > For doing case insensitive comparisons, I have been using > > if str1.casecmp(str2)==0 > puts 'equal' > else > puts 'not equal' > end > > Is their a way to do this with simpler syntax? I find String#downcase convenient for these sorts of comparisons: if str1.downcase == str2.downcase puts 'equal' else puts 'not equal' end Jacob Fugal