Skip to content

Instantly share code, notes, and snippets.

@doombongo
Last active December 11, 2015 03:19
Show Gist options
  • Save doombongo/4537231 to your computer and use it in GitHub Desktop.
Save doombongo/4537231 to your computer and use it in GitHub Desktop.
text = "bIg mouse"
redacted = "big"
words = text.split(" ")
words.each do |word|
if word != redacted
print word + " "
else
print "REDACTED "
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment