From: Tom Gilbert Date: 2001-07-05T03:42:05+09:00 Subject: [ruby-talk:17239] Bug with $= and regexps? Could someone explain this behaviour to me? ################## #!/usr/bin/ruby -w string = "\001test\001" regexp = /\001test\001/ $= = true puts "case insensitive" if(regexp.match(string)) $= = false puts "case sensitive" if(regexp.match(string)) ################## This script outputs only: case sensitive Tom. -- .^. .-------------------------------------------------------. /V\ | Tom Gilbert, London, England | http://linuxbrit.co.uk | /( )\ | Open Source/UNIX consultant | tom@linuxbrit.co.uk | ^^-^^ `-------------------------------------------------------'