--- title: "Use data capture definitions to refine your data" slug: "capture-definitions" description: "Data capture Definitions can use Mozenda's default syntax or regular expressions (RegEx) to help you create an agent that refines data" tags: ["customize", "RegEx", "filter", "data", "collect", "gather", "harvest", "replace", "scrape"] updated: 2024-05-14T12:01:04Z published: 2024-05-14T12:01:04Z canonical: "help.mozenda.com/capture-definitions" --- > ## 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. # Use capture definitions to refine your data Many websites contain important information within a block of text or code. *Capture Definitions* can use Mozenda's default syntax or regular expressions (RegEx) to help you create an agent that refines data and collects only what you need. Mozenda's default syntax is simpler but more limited than RegEx. See [Use RegEx to find text strings](https://help.mozenda.com/docs/how-to-use-regex-within-mozenda). Skip ahead to **step 5** if you have already created the capture action and only want to refine it. 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. ![RefineCaptureText](https://cdn.document360.io/03076343-9561-4857-8a4e-9f3bfed20ced/Images/Documentation/RefineCaptureText.gif) 1. Select **Refine Captured Text**. 2. Select **Capture Definitions**. 3. Place your cursor right before the first percent sign in the *Capture Definitions* > Enter the exact text that comes right before the desired text. 4. Place your cursor right after the last percent sign in the *Capture Definitions* > Enter the exact text that displays after the desired data. ![start to finish](https://cdn.document360.io/03076343-9561-4857-8a4e-9f3bfed20ced/Images/Documentation/start%20to%20finish.gif) Make sure you double-check multiple examples by using the arrows. ![NEXT](https://cdn.document360.io/03076343-9561-4857-8a4e-9f3bfed20ced/Images/Documentation/NEXT.gif) Confirm the refinements in the **Captured Text Preview** section under the **Refine Captured Text** window. 10. Select **SAVE**. For more advanced parsing that matches a certain pattern instead of a specific text, check the box next to [Regular Expression](https://help.mozenda.com/docs/how-to-use-regex-within-mozenda).