init(_:_:)
Creates a regex component that matches the given component zero or more times.
Declaration
init(_ component: some RegexComponent, _ behavior: RegexRepetitionBehavior? = nil) where Output == SubstringParameters
- component:
The regex component.
- behavior:
The repetition behavior to use when repeating
componentin the match. Ifbehaviorisnil, the default repetition behavior is used, which can be changed fromeagerby callingrepetitionBehavior(_:)on the resultingRegex.