Array map with regular expression
[1,2].map{|x| /#{x}/} # => [/1/, /2/] [1,2].map{|x| /#{x}/o} # => [/1/, /1/]