Contents

init(_:)

Creates a capture for the given component.

Declaration

init<W, C1, C2, C3, C4, C5, C6>(@RegexComponentBuilder _ componentBuilder: () -> some RegexComponent) where Output == (Substring, W, C1, C2, C3, C4, C5, C6)

Parameters

  • componentBuilder:

    A builder closure that generates a regex component to capture.