init(_:)
Creates a capture for the given component.
Declaration
init<W>(@RegexComponentBuilder _ componentBuilder: () -> some RegexComponent) where Output == (Substring, W)Parameters
- componentBuilder:
A builder closure that generates a regex component to capture.