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

# init(_:)

Creates a dynamic regular expression match output from an existing match.

## Declaration

```swift
init<Output>(_ match: Regex<Output>.Match)
```

## Discussion

Discussion You can use this initializer when you need an AnyRegexOutput instance instead of the output type of a strongly-typed Regex.Match.
