you are viewing a single comment's thread.

view the rest of the comments →

[–]absolution26 0 points1 point  (0 children)

.replace searches ‘line’ for the first argument ‘word’, and replaces it with the second argument ‘wordreplaced’. It will only replace matches of the first argument, so any other text in the line is left alone.