pat = /(.+[aiu])(.+[aiu])(.+[aiu])(.+[aiu])/i
# Four identical groups in this pattern
refs = pat.match("Fujiyama")
# refs is now: ["Fujiyama","Fu","ji","ya","ma"]

x = refs[1]
y = refs[2..3]
refs.to_a.each {|x| print "#{x}\n"}

