Replacer class

Replacer class

Provides methods intended to find and replace text in the document.

Methods

NameDescription
replace(input_file_name, output_file_name, pattern, replacement)Replaces all occurrences of a specified character string pattern with a replacement string in the input file.
replace(input_file_name, output_file_name, save_format, pattern, replacement)Replaces all occurrences of a specified character string pattern with a replacement string in the input file, with the specified save format.
replace(input_file_name, output_file_name, save_format, pattern, replacement, options)Replaces all occurrences of a specified character string pattern with a replacement string in the input file, with the specified save format and additional options.
replace(input_file_name, output_file_name, save_options, pattern, replacement, options)Replaces all occurrences of a specified character string pattern with a replacement string in the input file, with the specified save format and additional options.
replace(input_stream, output_stream, save_format, pattern, replacement)Replaces all occurrences of a specified character string pattern with a replacement string in the input stream, with the specified save format.
replace(input_stream, output_stream, save_format, pattern, replacement, options)Replaces all occurrences of a specified character string pattern with a replacement string in the input stream, with the specified save format and additional options.
replace(input_stream, output_stream, save_options, pattern, replacement, options)Replaces all occurrences of a specified character string pattern with a replacement string in the input stream, with the specified save format and additional options.

See Also