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