Mega Code Archive
Categories
/
Ruby
/
String
Scan through all the vowels in a string
"This is a test".scan(/[aeiou]/) { |x| puts x }