Given an array :
1.9.2p290 :172 > tags_array = %w[one two]
=> ["one", "two"]
1.9.2p290 :173 >
how can operate on it to have back (exactly) the following String ?
[/^one/i, /^two/i]
... i get a try with this :
1.9.2p290 :173 > tags_array.collect! {|tag| "/^"+tag+"/i"}
=> ["/^one/i", "/^two/i"]
1.9.2p290 :174 >
but I really want [/^one/i, /^two/i] without double quote.