We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Multi-pass gsub — Multiple gsub calls on the same string create intermediate strings. Consider a single pass or using a regex alternation.
gsub
str.gsub(/foo/, "bar").gsub(/baz/, "qux")
There was an error while loading. Please reload this page.