From: "Jesús Gabriel y Galán" Date: 2008-12-19T01:01:26+09:00 Subject: Re: Regular exressions and arguments On Thu, Dec 18, 2008 at 4:39 PM, Rick Jones wrote: > Should have just waited a little longer... figured it out... needed to > use the a = Regex.new(ARGV[0]) command to make it work... Thanks any way > every one. You can also use the regex literal, but you need to lose the double quotes. Check this: irb(main):001:0> a = "Test" => "Test" irb(main):002:0> re = /#{a}/ => /Test/ irb(main):003:0> re = /"#{a}"/ => /"Test"/ Hope this helps, Jesus.