N = 2
'abcdef'.scan(Regexp.new('.{%d}' % N))