---
title: "init(_:)"
framework: swift
role: symbol
role_heading: Initializer
path: "swift/regex/init(_:)-4ef55"
---

# init(_:)

Creates a regular expression using a RegexBuilder closure.

## Declaration

```swift
init(@RegexComponentBuilder _ content: () -> some RegexComponent<Output>)
```
