If you have an array of strings (not just words), you can grab each phrase, and gsub each word: phrases = ["Blah foo", "Blah bar"]. @bad_words = %w[bar qiz].
確定! 回上一頁