From: Wmute Date: 2006-02-03T22:38:18+09:00 Subject: problem with regexp? Hello, I am trying to replace some old Perl scripts with Ruby, however i get stuck with this line >> if line =~/($time)/ && line =~/(xxx)/ << $time is a global variable containing the current day/month, but it wont match! what am i doing wrong? I am new to Ruby, so please dont be offended.