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

# init(_:)

Creates a capture for the given component.

## Declaration

```swift
init<W, C1, C2, C3, C4, C5, C6, C7, C8>(_ component: some RegexComponent) where Output == (Substring, W, C1, C2, C3, C4, C5, C6, C7, C8)
```

## Parameters

- `component`: The regex component to capture.
