Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- text = File.read('test.txt')
- output_of_gsub = text.gsub(/(susi)/, "susi_replaced")
- File.open('test.txt', "w") {|file| file.puts output_of_gsub}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement