init(_:)

Creates a capture for the given component.

iOS
16.0+
macOS
13.0+
tvOS
16.0+
watchOS
9.0+
init<W>(_ component: some RegexComponent) where Output == (Substring, W)

Parameters

component

The regex component to capture.