init(_:as:)
Creates a capture for the given component using the specified reference.
Declaration
init<W, C1, C2, C3, C4, C5, C6, C7>(_ component: some RegexComponent, as reference: Reference<W>) where Output == (Substring, W, C1, C2, C3, C4, C5, C6, C7)Parameters
- component:
The regex component to capture.
- reference:
The reference to use for anything captured by
component.