Mega Code Archive

 
Categories / Ruby / String
 

If a string contains any vowels

puts "String has vowels" if "This is a test" =~ /[aeiou]/