ruby regular expression remove pattern substring code example Example: ruby substring remove "hello".gsub(/[aeiou]/, '')