Find and Replace Text
This task will run a find and replace on the contents of a text file.
Settings
Input File
Required
The file to find and replace text in.
Output File
Dependant
The file to output the result to (when not overwriting the input file).
Overwrite Input File
Required
Set to true to overwrite the contents of the input file with the result of the find and replace, or false to write the result to the file specified in the 'Output File' property.
Find
Dependant
The string or list of strings to look for in the input file, or a regular expression to match on. Required when the 'Remove Non UTF-8 Characters' setting is 'False'.
Note
The task doesn't support finding new line characters, both as part of a string or regular expression.
Remove Non UTF-8 Characters
Required
Set to true to remove any characters that are not valid UTF-8, such as control characters.
Replace
Required
The string to replace all matches with.