---
title: "Extract Regex Groups"
description: "Local-first visual environment for building and running AI workflows. Build agents visually, deploy anywhere, privacy by design."
canonical: https://docs.nodetool.ai/nodes/nodetool/text/extractregexgroups
markdown: https://docs.nodetool.ai/nodes/nodetool/text/extractregexgroups.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/nodetool/text/extractregexgroups.md
---

# Extract Regex Groups

**Type:** `nodetool.text.ExtractRegex`

**Namespace:** `nodetool.text`

## Description

Extracts substrings matching regex groups from text.
    text, regex, extract

    Use cases:
    - Extracting structured data (e.g., dates, emails) from unstructured text
    - Parsing specific patterns in log files or documents
    - Isolating relevant information from complex text formats

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| text | `str` |  | `` |
| regex | `str` |  | `` |
| dotall | `bool` |  | `false` |
| ignorecase | `bool` |  | `false` |
| multiline | `bool` |  | `false` |

## Outputs

| Output | Type | Description |
|--------|------|-------------|
| output | `list[str]` |  |

## Related Nodes

Browse other nodes in the [nodetool.text](./) namespace.
