= re_match
:type: scanner
:status: stable



////
     THIS FILE IS AUTOGENERATED!

     To make changes, edit the corresponding source file under:

     https://github.com/redpanda-data/connect/tree/main/internal/impl/<provider>.

     And:

     https://github.com/redpanda-data/connect/tree/main/cmd/tools/docs_gen/templates/plugin.adoc.tmpl
////

// © 2024 Redpanda Data Inc.


component_type_dropdown::[]


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

=== `pattern`

The pattern to match against.


*Type*: `string`


```yml
# Examples

pattern: (?m)^\d\d:\d\d:\d\d
```

=== `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`


