init(count:_:)
Creates a regex component that matches the given component repeated the specified number of times.
Declaration
init(count: Int, @RegexComponentBuilder _ componentBuilder: () -> some RegexComponent) where Output == SubstringParameters
- count:
The number of times to repeat
component.countmust be greater than or equal to zero. - componentBuilder:
A builder closure that creates the regex component to repeat.