remove(*patterns)
public
Returns a new string with all occurrences of the patterns removed.
str = "foo bar test"
str.remove(" test")
str.remove(" test", /bar/)
str
# File activesupport/lib/active_support/core_ext/string/filters.rb, line 32
def remove(*patterns)
dup.remove!(*patterns)
end