
## Replacer class

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


**Inheritance:** [Replacer](./) → [Processor](../processor/)

### Methods

| Name | Description |
| --- | --- |
|[ create(context)](./create/#replacercontext) | Creates new instance of the replacer processor. |
|[ execute()](../processor/execute/#default) | Execute the processor action.<br>(Inherited from [Processor](../processor/)) |
|[ from_file(input)](../processor/from_file/#str) | Specifies input document for processing.<br>(Inherited from [Processor](../processor/)) |
|[ from_file(input, load_options)](../processor/from_file/#str_loadoptions) | Specifies input document for processing.<br>(Inherited from [Processor](../processor/)) |
|[ from_stream(input)](../processor/from_stream/#bytesio) | Specifies input document for processing.<br>(Inherited from [Processor](../processor/)) |
|[ from_stream(input, load_options)](../processor/from_stream/#bytesio_loadoptions) | Specifies input document for processing.<br>(Inherited from [Processor](../processor/)) |
|[ replace(input_file_name, output_file_name, pattern, replacement)](./replace/#str_str_str_str) | 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)](./replace/#str_str_saveformat_str_str) | 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_format, pattern, replacement, options)](./replace/#str_str_saveformat_str_str_findreplaceoptions) | 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)](./replace/#str_str_saveoptions_str_str) | 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)](./replace/#str_str_saveoptions_str_str_findreplaceoptions) | 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)](./replace/#bytesio_bytesio_saveformat_str_str) | 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_format, pattern, replacement, options)](./replace/#bytesio_bytesio_saveformat_str_str_findreplaceoptions) | 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)](./replace/#bytesio_bytesio_saveoptions_str_str) | 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)](./replace/#bytesio_bytesio_saveoptions_str_str_findreplaceoptions) | 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_regex(input_file_name, output_file_name, pattern, replacement)](./replace_regex/#str_str_str_str) | Replaces all occurrences of a specified character string pattern with a replacement string in the input file using a regular expression. |
|[ replace_regex(input_file_name, output_file_name, save_format, pattern, replacement)](./replace_regex/#str_str_saveformat_str_str) | Replaces all occurrences of a specified character string pattern with a replacement string in the input file using a regular expression, with the specified save format and additional options. |
|[ replace_regex(input_file_name, output_file_name, save_format, pattern, replacement, options)](./replace_regex/#str_str_saveformat_str_str_findreplaceoptions) | Replaces all occurrences of a specified character string pattern with a replacement string in the input file using a regular expression, with the specified save format and additional options. |
|[ replace_regex(input_file_name, output_file_name, save_options, pattern, replacement)](./replace_regex/#str_str_saveoptions_str_str) | Replaces all occurrences of a specified character string pattern with a replacement string in the input file using a regular expression, with the specified save format and additional options. |
|[ replace_regex(input_file_name, output_file_name, save_options, pattern, replacement, options)](./replace_regex/#str_str_saveoptions_str_str_findreplaceoptions) | Replaces all occurrences of a specified character string pattern with a replacement string in the input file using a regular expression, with the specified save format and additional options. |
|[ replace_regex(input_stream, output_stream, save_format, pattern, replacement, options)](./replace_regex/#bytesio_bytesio_saveformat_str_str_findreplaceoptions) | Replaces all occurrences of a specified character string pattern with a replacement string in the input stream using a regular expression, with the specified save format and additional options. |
|[ replace_regex(input_stream, output_stream, save_format, pattern, replacement)](./replace_regex/#bytesio_bytesio_saveformat_str_str) | Replaces all occurrences of a specified character string pattern with a replacement string in the input stream using a regular expression, with the specified save format and additional options. |
|[ replace_regex(input_stream, output_stream, save_options, pattern, replacement, options)](./replace_regex/#bytesio_bytesio_saveoptions_str_str_findreplaceoptions) | Replaces all occurrences of a specified character string pattern with a replacement string in the input stream using a regular expression, with the specified save format and additional options. |
|[ replace_regex(input_stream, output_stream, save_options, pattern, replacement)](./replace_regex/#bytesio_bytesio_saveoptions_str_str) | Replaces all occurrences of a specified character string pattern with a replacement string in the input stream using a regular expression, with the specified save format and additional options. |
|[ replace_to_images(input_file_name, save_options, pattern, replacement)](./replace_to_images/#str_imagesaveoptions_str_str) | Replaces all occurrences of a specified character string pattern with a replacement string in the input file. Renders output to images. |
|[ replace_to_images(input_file_name, save_options, pattern, replacement, options)](./replace_to_images/#str_imagesaveoptions_str_str_findreplaceoptions) | Replaces all occurrences of a specified character string pattern with a replacement string in the input file. Renders output to images. |
|[ replace_to_images(input_stream, save_options, pattern, replacement)](./replace_to_images/#bytesio_imagesaveoptions_str_str) | Replaces all occurrences of a specified character string pattern with a replacement string in the input file. Renders output to images. |
|[ replace_to_images(input_stream, save_options, pattern, replacement, options)](./replace_to_images/#bytesio_imagesaveoptions_str_str_findreplaceoptions) | Replaces all occurrences of a specified character string pattern with a replacement string in the input file. Renders output to images. |
|[ replace_to_images_regex(input_file_name, save_options, pattern, replacement, options)](./replace_to_images_regex/#str_imagesaveoptions_str_str_findreplaceoptions) | Replaces all occurrences of a specified regular expression pattern with a replacement string in the input file. Renders output to images. |
|[ replace_to_images_regex(input_file_name, save_options, pattern, replacement)](./replace_to_images_regex/#str_imagesaveoptions_str_str) | Replaces all occurrences of a specified regular expression pattern with a replacement string in the input file. Renders output to images. |
|[ replace_to_images_regex(input_stream, save_options, pattern, replacement, options)](./replace_to_images_regex/#bytesio_imagesaveoptions_str_str_findreplaceoptions) | Replaces all occurrences of a specified regular expression pattern with a replacement string in the input file. Renders output to images. |
|[ replace_to_images_regex(input_stream, save_options, pattern, replacement)](./replace_to_images_regex/#bytesio_imagesaveoptions_str_str) | Replaces all occurrences of a specified regular expression pattern with a replacement string in the input file. Renders output to images. |
|[ to_file(output)](../processor/to_file/#str) | Specifies output file for the processor.<br>(Inherited from [Processor](../processor/)) |
|[ to_file(output, save_options)](../processor/to_file/#str_saveoptions) | Specifies output file for the processor.<br>(Inherited from [Processor](../processor/)) |
|[ to_file(output, save_format)](../processor/to_file/#str_saveformat) | Specifies output file for the processor.<br>(Inherited from [Processor](../processor/)) |
|[ to_stream(output, save_options)](../processor/to_stream/#bytesio_saveoptions) | Specifies output stream for the processor.<br>(Inherited from [Processor](../processor/)) |
|[ to_stream(output, save_format)](../processor/to_stream/#bytesio_saveformat) | Specifies output stream for the processor.<br>(Inherited from [Processor](../processor/)) |
|[ to_streams(output, save_options)](../processor/to_streams/#unknown_saveoptions) | <br>(Inherited from [Processor](../processor/)) |
|[ to_streams(output, save_format)](../processor/to_streams/#unknown_saveformat) | <br>(Inherited from [Processor](../processor/)) |

### See Also

* module [aspose.words.lowcode](../)
* class [Processor](../processor/)

