# Find and Replace

This generator replaces all instances of the find string with the replace string.

For example, you can indicate to replace all instances of `abc` with `123`.

## Characteristics <a href="#find-and-replace-characteristics" id="find-and-replace-characteristics"></a>

<table data-header-hidden><thead><tr><th valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top"><strong>Consistency</strong></td><td valign="top">No, cannot be made consistent.</td></tr><tr><td valign="top"><strong>Linking</strong></td><td valign="top">No, cannot be linked.</td></tr><tr><td valign="top"><strong>Differential privacy</strong></td><td valign="top">No</td></tr><tr><td valign="top"><strong>Data-free</strong></td><td valign="top">No</td></tr><tr><td valign="top"><strong>Allowed for primary keys</strong></td><td valign="top">No</td></tr><tr><td valign="top"><strong>Allowed for unique columns</strong></td><td valign="top">No</td></tr><tr><td valign="top"><strong>Uses format-preserving encryption (FPE)</strong></td><td valign="top">No</td></tr><tr><td valign="top"><strong>Privacy ranking</strong></td><td valign="top">5</td></tr><tr><td valign="top"><strong>Generator ID (for the API)</strong></td><td valign="top"><a href="../../../api/quick-start-guide/tonic-api-generator-assignment/generator-api-reference/generator-api-ref-find-and-replace"><code>FindAndReplaceGenerator</code></a></td></tr></tbody></table>

## How to configure <a href="#find-and-replace-configure" id="find-and-replace-configure"></a>

To configure the generator:

1. In the **Find** field, type the string to look for in the source column value.\
   \
   To use a regular expression to identify the source value, check the **Use Regex** checkbox.\
   \
   If you use a regular expression, use backslash ( `\` ) as the escape character.
2. In the **Replace** field, type the string to replace the matching string with.
3. If [Structural data encryption](https://docs.tonic.ai/app/generation/generators-assign-config/generators-data-encryption-config) is enabled, then to use it for this column, in the advanced options section, toggle **Use data encryption process** to the on position.
