--- title: "Refine captured text - Web scraper tool Mozenda" slug: "refining-captured-text" description: "Refine Captured Text is a tool in the Agent Builder that helps you refine the data that your agent captures. You can use it to parse data from a field or replace characters in order to make your output meet your needs. Web scraper tool Mozenda" tags: ["change format", "change text", "remove text", "add text", "remove", "whitespace", "extra lines", "refine", "parse data", "replace", "customize", "change", "RegEx"] updated: 2024-05-14T12:00:58Z published: 2024-05-14T12:00:58Z canonical: "help.mozenda.com/refining-captured-text" --- > ## 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. # Refine Captured Text *Refine Captured Text* is a tool in the Agent Builder that provides a set of options that help refine the text. You can use it to parse data into a field or replace characters in order to make your output meet your needs. ### Common uses - Separate the city, zip, state, and street address from a full address. - Remove the currency sign from the price. - Use a RegEx to refine the captured text. - Remove whitespaces and line breaks. - Decode HTML and URL encoded characters. ### Opening the Refine Captured Text window In the Agent Builder: 1. Select the block or line of text that you want to capture. 2. Select **Capture Text**. 3. Enter a name for the field. 4. Select **SAVE**. 5. Right-click the capture action in the Actions List. 6. Select **Refine Captured Text**. ![refine1](https://cdn.document360.io/03076343-9561-4857-8a4e-9f3bfed20ced/Images/Documentation/refine1.png) ![capture text](https://cdn.document360.io/03076343-9561-4857-8a4e-9f3bfed20ced/Images/Documentation/capture%20text.png) Once the window is open, you can decide whether to parse the Text or the HTML. ![refine3(1)](https://cdn.document360.io/03076343-9561-4857-8a4e-9f3bfed20ced/Images/Documentation/refine3%281%29.PNG) Other tasks you can complete in the Refined Captured Text window: - **Text/HTML** Select whether you want to see only the text visible to the user or also the underlying HTML. For Refine Captured Text HTML see Capture the [URL of a link](https://help.mozenda.com/docs/capture-the-url-of-a-link) or [Capture the URL of an image](https://help.mozenda.com/docs/capture-the-url-of-an-image). - **Capture Definitions** Specifiy how the text found by the action will be captured. See [Use capture definitions to refine your data](https://help.mozenda.com/docs/en/capture-definitions). - **Content Replacement** Find and replaces text. See [Replace captured text with content replacement](https://help.mozenda.com/docs/find-and-replace-with-content-replacements). - **Captured text preview** Display the text based on the definitions. Check the Regular Expressions (RegEx) box to write specific expressions to your capture. Mozenda's default syntax or RegEx help create an agent that refines data and collects only what you need. The expressions can be written with plain text in **Capture Definitions** or **Content Replacement** or as a **Regular Expression**. See [Use RegEx to find text strings](https://help.mozenda.com/docs/en/how-to-use-regex-within-mozenda). ![regex](https://cdn.document360.io/03076343-9561-4857-8a4e-9f3bfed20ced/Images/Documentation/regex.PNG)