# re_match

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

---
title: re_match
latest-operator-version: v26.1.4
latest-console-tag: v3.7.3
latest-connect-version: 4.93.0
latest-redpanda-tag: v26.1.9
docname: connect/components/scanners/re_match
page-component-name: cloud-data-platform
page-version: master
page-component-version: master
page-component-title: Cloud
page-relative-src-path: connect/components/scanners/re_match.adoc
page-edit-url: https://github.com/redpanda-data/cloud-docs/edit/main/modules/develop/pages/connect/components/scanners/re_match.adoc
page-git-created-date: "2024-09-09"
page-git-modified-date: "2026-05-26"
---

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

**Available in:** Cloud, [Self-Managed](https://docs.redpanda.com/connect/components/scanners/re_match/%20%22View%20the%20Self-Managed%20version%20of%20this%20component%22)

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

```yml
# Config fields, showing default values
re_match:
  pattern: (?m)^\d\d:\d\d:\d\d # 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
```