str = 'hello world'
puts str.count("^ae iou")

--output:--
7

-- 
Posted via http://www.ruby-forum.com/.