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