# re_match

> For the complete documentation index, see [llms.txt](https://docs.redpanda.com/llms.txt). Component-specific: [connect-full.txt](https://docs.redpanda.com/connect-full.txt)

---
title: re_match
latest-connect-version: 4.117.0
latest-operator-version: v26.2.5
latest-console-tag: v3.14.0
latest-redpanda-tag: v26.2.6
docname: scanners/re_match
page-component-name: connect
page-version: master
page-component-version: master
page-component-title: Connect
page-relative-src-path: scanners/re_match.adoc
page-edit-url: https://github.com/redpanda-data/rp-connect-docs/edit/main/modules/components/pages/scanners/re_match.adoc
description: Split an input stream into segments matching against a regular expression.
page-git-created-date: "2024-05-24"
page-git-modified-date: "2026-10-29"
page-generated-sources:
  - include: connect:components:partial$descriptions/scanners/re_match.adoc
    generator: null
    version: null
    source: the component specs in https://github.com/redpanda-data/connect
  - include: connect:components:partial$availability/scanners/re_match.adoc
    generator: null
    version: null
    source: the component specs in https://github.com/redpanda-data/connect
  - include: connect:components:partial$fields/scanners/re_match.adoc
    generator: null
    version: null
    source: the component specs in https://github.com/redpanda-data/connect
page-generated-content: partial
---

<!-- Source: https://docs.redpanda.com/connect/components/scanners/re_match.md -->

Split an input stream into segments matching against a regular expression.

#### Common

```yml
scanner:
  re_match:
    pattern: "" # No default (required)
    max_buffer_size: 65536
```

#### Advanced

```yml
scanner:
  re_match:
    pattern: "" # No default (required)
    max_buffer_size: 65536
```

## [](#fields)Fields

### [](#max_buffer_size)`max_buffer_size`

Set the maximum buffer size for storing line data, this limits the maximum size that a message can be without causing an error.

**Type**: `int`

**Default**: `65536`

### [](#pattern)`pattern`

The pattern to match against.

**Type**: `string`

```yaml
# Examples:
pattern: (?m)^\d\d:\d\d:\d\d
```