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

# init(_:)

Creates a regular expression match with a dynamic capture list from the given match.

## Declaration

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

## Parameters

- `match`: A regular expression match to convert to a match with type-erased captures.

## Discussion

Discussion You can use this initializer to convert a Regex.Match with strongly-typed captures into a match with the type-eraser AnyRegexOutput as its output type.
