delete element from string ruby code example Example: ruby substring remove "hello".gsub(/[aeiou]/, '')