[Files] Find and Replace
Q100045: [Files] Find and Replace
Finds and replaces text or pattern in one or more files.
Parameter | In/Out | Description | Other Info |
---|---|---|---|
File source | In | A single filename, or list of files to process using fully qualified pathnames. Typically this list of files might come from a FileList output variable from a previous module. |
|
Find | In | The text to find in the input file(s). | |
Use Regular Expression | In | Set to True if the Find text is a regular expression. | Default: False |
Ignore case | In | Set to True when the case of the text should be ignored and should match both lower-case and upper-case text. | Default: True |
Replace | In | The replacement text to insert at each place the find text is located. | |
Output Folder | In | The local or network folder to write the replaced file(s) to. If not specified, the find/replaced files will be overwritten. | |
Log output level | In | Choices: Minimal , Verbose The level of execution detail you want to appear in the log. |
Default: Minimal |
File list | Out | The list of processed pathnames (files). |
(Italics = required parameters)
Notes
The [Files] Find and Replace
module allows to do a bulk oriented copy and replace on one or more specified files. By default, the Find
parameter wil search for the literal text specified by this value. If the Use Regular Expression
parameter is set to true
, then instead of the Find
parameter being literal text, it should be a regular expression
that should be searched for. The Replace
parameter should be the literal text that you want to replace each found occurance with. If this is an empty value, then the result will be that all occurances of the found text will just be deleted.
Last Updated:
10/3/2023 1:07:01 AM