---
title: "init(_:)"
framework: regexbuilder
role: symbol
role_heading: Initializer
path: "regexbuilder/capture/init(_:)-1tmsz"
---

# init(_:)

Creates a capture for the given component.

## Declaration

```swift
init<W, C1>(_ component: some RegexComponent) where Output == (Substring, W, C1)
```

## Parameters

- `component`: The regex component to capture.
