> irb(main):005:0> "a\nb".match(/.+/m).to_a
> => ["a\nb"]
> 
Thank you for your help.
-- 
Posted via http://www.ruby-forum.com/.