Initializerswift 6.1.2_StringProcessing
init(_:)
Creates a regular expression match with a dynamic capture list from the given match.
- iOS
- 16.0+
- macOS
- 13.0+
- tvOS
- 16.0+
- watchOS
- 9.0+
init<OtherOutput>(_ match: Regex<OtherOutput>.Match)
Parameters
- match
A regular expression match to convert to a match with type-erased captures.
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.