From: yvon.thoravalNO-SPAM@... (Yvon Thoraval) Date: 2004-10-05T15:39:51+09:00 Subject: [yanq = yet another newbie question] correct syntax fovariable and regexp i have a regex like : rex = Regexp.new("^(.*)\s+Bourgogne[\\s*|\\s+(.*)]") but i want to change the string "Bourgogne" to the third arg of the script (needle = ARGV[2].to_s) what is the correct syntax in order to replace "Bourgogne" by that variable ? Also, i do have a test : if line =~ /^(.*)\s+Bourgogne\s*(.*)/ using rex is the correct syntax : if line =~ rex ??? -- yt