rails remove all words after a word string code example Example: ruby substring remove "hello".gsub(/[aeiou]/, '')