-
-
Save anonymous/a2da9408eb7bf62ed2ca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
puts "Text to search through: " | |
text = gets.chomp | |
puts "Word to redact: " | |
redact = gets.chomp | |
words = text.split "" | |
words.each do |word| | |
end | |
if word == redact | |
print "REDACTED " | |
else | |
print word + " " | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment