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