init(_:)
Creates a regular expression match with a dynamic capture list from the given match.
Declaration
init<OtherOutput>(_ match: Regex<OtherOutput>.Match)Parameters
- match:
A regular expression match to convert to a match with type-erased captures.
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.