init(_:)

Creates an atomic group with the given regex component.

iOS
16.0+
macOS
13.0+
tvOS
16.0+
watchOS
9.0+
init<W, C1, C2, C3, C4, C5, C6>(@RegexComponentBuilder _ componentBuilder: () -> some RegexComponent) where Output == (Substring, C1, C2, C3, C4, C5, C6)

Parameters

componentBuilder

A builder closure that generates a regex component to wrap in an atomic group.