--- title: "How to find and replace captured text with content replacements " slug: "find-and-replace-with-content-replacements" description: "Content replacement lets you find and replace text extracted from a web page to customize what you're saving to your agent’s data collection." tags: ["format change", "content change", "remove text", "remove", "add", "change text", "text", "display", "define", "match", "refine", "data", "change"] updated: 2024-05-14T12:01:09Z published: 2024-05-14T12:01:09Z canonical: "help.mozenda.com/find-and-replace-with-content-replacements" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.mozenda.com/llms.txt > Use this file to discover all available pages before exploring further. # Replace captured text with content replacements The agent can customize the data that you are saving to your agent's data collection by using *Content Replacements* under Refine Captured Text. See [Refining captured text](https://help.mozenda.com/docs/refining-captured-text) *Content Replacements* finds and replaces text and data extracted from a web page. In the Agent Builder: 1. Right-click the capture action in the Actions List. 2. Select **Refine Captured Text**. 3. Select **Content Replacements**. 4. Select **New** in the **Content Replacements** section. 5. Select **Text Replacement**. ![capturetext new](https://cdn.document360.io/03076343-9561-4857-8a4e-9f3bfed20ced/Images/Documentation/capturetext%20new.png) The two new fields that display are **Find** and **Replace with**. ![replacement3](https://cdn.document360.io/03076343-9561-4857-8a4e-9f3bfed20ced/Images/Documentation/replacement3.PNG) 1. Enter the text you want to remove or replace in the **Find:** section. Note To replace text that matches a certain pattern instead of a specific piece of text, check the box next to **Regular Expression**. See [Use RegEx to find text strings](https://help.mozenda.com/docs/how-to-use-regex-within-mozenda) 1. Enter the new text that will replace the old text in the **Replace with** section. Or Leave the **Replace with** section empty to remove text without replacing it. 2. Confirm the replacement changes you just made in the **Content after replacement** section ![replacement 2](https://cdn.document360.io/03076343-9561-4857-8a4e-9f3bfed20ced/Images/Documentation/replacement%202.PNG) 1. Confirm that the newly replaced text appears in the **Captured Text Preview** section. Update Capture Definitions Check the *Capture Definitions* after creating a *Content Replacement* so it matches the new text otherwise it might cause the **Capture Definitions** to fail. ![capturepreview](https://cdn.document360.io/03076343-9561-4857-8a4e-9f3bfed20ced/Images/Documentation/capturepreview.png) 1. Select **SAVE**. Create multiple text replacements for a single piece of captured text. They are run in the order specified, but you can re-order them at any time.