From: Mark Probert Date: 2003-08-12T03:19:29+09:00 Subject: ruby 1.8.0 and =~ Hi, rubyists. I have been out of it for a bit and have just started plating with 1.8.0. I notice a new warning around =~ "warning: string =~ string will be obsolete; use explicit regexp" Can someone please tell me the easy way to redo the following? arr.each { |item| if item =~ /blah/ info = item.split(/:/) @store[key] = "#{val}:#{info[1].strip}:" end } TIA, -- -mark. ---------------------------------------------------- Mark Probert probertm@NOSPAM_nortelnetworks.com Nortel Networks ph. (613) 768-1082 ---------------------------------------------------- All opinions expressed are my own and do not reflect in any way those of Nortel Networks.