---
title: "init(_:)"
framework: regexbuilder
role: symbol
role_heading: Initializer
path: "regexbuilder/local/init(_:)-190tm"
---

# init(_:)

Creates an atomic group with the given regex component.

## Declaration

```swift
init(_ component: some RegexComponent) where Output == Substring
```

## Parameters

- `component`: The regex component to wrap in an atomic group.
