init(_:)

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

iOS
16.0+
macOS
13.0+
tvOS
16.0+
watchOS
9.0+
init<Output>(_ match: Regex<Output>.Match)

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