From: Josef 'Jupp' Schugt Date: 2003-08-12T06:26:22+09:00 Subject: Re: ruby 1.8.0 and =~ Saluton! * Brett H. Williams; 2003-08-11, 20:28 UTC: > Just make sure you use a Regexp on the right side of a =~. Note that you only have to make sure that you have one instance of Regexp and one instance of String. No need to have the Regexp on the right side. Here's the warning: ruby -e 'p "a" =~ "ab"' -e:1: warning: string =~ string will be obsolete; use explicit regexp nil And here is the reason for that warning and an illustration that you can have String/Regexp on either side of '=~' ruby -e 'p /a/ =~ "ab"' 0 ruby -e 'p "a" =~ /ab/' nil Gis, Josef 'Jupp' Schugt -- N'attribuez jamais � la malice ce que l'incomp�tence explique ! -- Napol�on