Repeat
A regex component that matches a selectable number of occurrences of its underlying component.
- iOS
- 16.0+
- macOS
- 13.0+
- tvOS
- 16.0+
- watchOS
- 9.0+
struct Repeat<Output>
A regex component that matches a selectable number of occurrences of its underlying component.
struct Repeat<Output>
import RegexBuilder
protocol RegexComponent<RegexOutput>
A type that represents a regular expression.
init(_ expression: some RangeExpression<Int>, _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ componentBuilder: () -> some RegexComponent) where Output == Substring
Creates a regex component that matches the given component repeated a number of times specified by the given range expression.
init(_ component: some RegexComponent, _ expression: some RangeExpression<Int>, _ behavior: RegexRepetitionBehavior? = nil) where Output == Substring
Creates a regex component that matches the given component repeated a number of times specified by the given range expression.
init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10>(_ expression: some RangeExpression<Int>, _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ componentBuilder: () -> some RegexComponent) where Output == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?, C10?)
Creates a regex component that matches the given component repeated a number of times specified by the given range expression.
init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10>(_ component: some RegexComponent, _ expression: some RangeExpression<Int>, _ behavior: RegexRepetitionBehavior? = nil) where Output == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?, C10?)
Creates a regex component that matches the given component repeated a number of times specified by the given range expression.
init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9>(_ expression: some RangeExpression<Int>, _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ componentBuilder: () -> some RegexComponent) where Output == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?)
Creates a regex component that matches the given component repeated a number of times specified by the given range expression.
init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9>(_ component: some RegexComponent, _ expression: some RangeExpression<Int>, _ behavior: RegexRepetitionBehavior? = nil) where Output == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?)
Creates a regex component that matches the given component repeated a number of times specified by the given range expression.
init<W, C1, C2, C3, C4, C5, C6, C7, C8>(_ expression: some RangeExpression<Int>, _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ componentBuilder: () -> some RegexComponent) where Output == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?)
Creates a regex component that matches the given component repeated a number of times specified by the given range expression.
init<W, C1, C2, C3, C4, C5, C6, C7, C8>(_ component: some RegexComponent, _ expression: some RangeExpression<Int>, _ behavior: RegexRepetitionBehavior? = nil) where Output == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?)
Creates a regex component that matches the given component repeated a number of times specified by the given range expression.
init<W, C1, C2, C3, C4, C5, C6, C7>(_ expression: some RangeExpression<Int>, _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ componentBuilder: () -> some RegexComponent) where Output == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?)
Creates a regex component that matches the given component repeated a number of times specified by the given range expression.
init<W, C1, C2, C3, C4, C5, C6, C7>(_ component: some RegexComponent, _ expression: some RangeExpression<Int>, _ behavior: RegexRepetitionBehavior? = nil) where Output == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?)
Creates a regex component that matches the given component repeated a number of times specified by the given range expression.
init<W, C1, C2, C3, C4, C5, C6>(_ expression: some RangeExpression<Int>, _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ componentBuilder: () -> some RegexComponent) where Output == (Substring, C1?, C2?, C3?, C4?, C5?, C6?)
Creates a regex component that matches the given component repeated a number of times specified by the given range expression.
init<W, C1, C2, C3, C4, C5, C6>(_ component: some RegexComponent, _ expression: some RangeExpression<Int>, _ behavior: RegexRepetitionBehavior? = nil) where Output == (Substring, C1?, C2?, C3?, C4?, C5?, C6?)
Creates a regex component that matches the given component repeated a number of times specified by the given range expression.
init<W, C1, C2, C3, C4, C5>(_ expression: some RangeExpression<Int>, _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ componentBuilder: () -> some RegexComponent) where Output == (Substring, C1?, C2?, C3?, C4?, C5?)
Creates a regex component that matches the given component repeated a number of times specified by the given range expression.
init<W, C1, C2, C3, C4, C5>(_ component: some RegexComponent, _ expression: some RangeExpression<Int>, _ behavior: RegexRepetitionBehavior? = nil) where Output == (Substring, C1?, C2?, C3?, C4?, C5?)
Creates a regex component that matches the given component repeated a number of times specified by the given range expression.
init<W, C1, C2, C3, C4>(_ expression: some RangeExpression<Int>, _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ componentBuilder: () -> some RegexComponent) where Output == (Substring, C1?, C2?, C3?, C4?)
Creates a regex component that matches the given component repeated a number of times specified by the given range expression.
init<W, C1, C2, C3, C4>(_ component: some RegexComponent, _ expression: some RangeExpression<Int>, _ behavior: RegexRepetitionBehavior? = nil) where Output == (Substring, C1?, C2?, C3?, C4?)
Creates a regex component that matches the given component repeated a number of times specified by the given range expression.
init<W, C1, C2, C3>(_ expression: some RangeExpression<Int>, _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ componentBuilder: () -> some RegexComponent) where Output == (Substring, C1?, C2?, C3?)
Creates a regex component that matches the given component repeated a number of times specified by the given range expression.
init<W, C1, C2, C3>(_ component: some RegexComponent, _ expression: some RangeExpression<Int>, _ behavior: RegexRepetitionBehavior? = nil) where Output == (Substring, C1?, C2?, C3?)
Creates a regex component that matches the given component repeated a number of times specified by the given range expression.
init<W, C1, C2>(_ expression: some RangeExpression<Int>, _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ componentBuilder: () -> some RegexComponent) where Output == (Substring, C1?, C2?)
Creates a regex component that matches the given component repeated a number of times specified by the given range expression.
init<W, C1, C2>(_ component: some RegexComponent, _ expression: some RangeExpression<Int>, _ behavior: RegexRepetitionBehavior? = nil) where Output == (Substring, C1?, C2?)
Creates a regex component that matches the given component repeated a number of times specified by the given range expression.
init<W, C1>(_ expression: some RangeExpression<Int>, _ behavior: RegexRepetitionBehavior? = nil, @RegexComponentBuilder _ componentBuilder: () -> some RegexComponent) where Output == (Substring, C1?)
Creates a regex component that matches the given component repeated a number of times specified by the given range expression.
init<W, C1>(_ component: some RegexComponent, _ expression: some RangeExpression<Int>, _ behavior: RegexRepetitionBehavior? = nil) where Output == (Substring, C1?)
Creates a regex component that matches the given component repeated a number of times specified by the given range expression.
init(_ component: some RegexComponent, count: Int) where Output == Substring
Creates a regex component that matches the given component repeated the specified number of times.
init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10>(_ component: some RegexComponent, count: Int) where Output == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?, C10?)
Creates a regex component that matches the given component repeated the specified number of times.
init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9>(_ component: some RegexComponent, count: Int) where Output == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?)
Creates a regex component that matches the given component repeated the specified number of times.
init<W, C1, C2, C3, C4, C5, C6, C7, C8>(_ component: some RegexComponent, count: Int) where Output == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?)
Creates a regex component that matches the given component repeated the specified number of times.
init<W, C1, C2, C3, C4, C5, C6, C7>(_ component: some RegexComponent, count: Int) where Output == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?)
Creates a regex component that matches the given component repeated the specified number of times.
init<W, C1, C2, C3, C4, C5, C6>(_ component: some RegexComponent, count: Int) where Output == (Substring, C1?, C2?, C3?, C4?, C5?, C6?)
Creates a regex component that matches the given component repeated the specified number of times.
init<W, C1, C2, C3, C4, C5>(_ component: some RegexComponent, count: Int) where Output == (Substring, C1?, C2?, C3?, C4?, C5?)
Creates a regex component that matches the given component repeated the specified number of times.
init<W, C1, C2, C3, C4>(_ component: some RegexComponent, count: Int) where Output == (Substring, C1?, C2?, C3?, C4?)
Creates a regex component that matches the given component repeated the specified number of times.
init<W, C1, C2, C3>(_ component: some RegexComponent, count: Int) where Output == (Substring, C1?, C2?, C3?)
Creates a regex component that matches the given component repeated the specified number of times.
init<W, C1, C2>(_ component: some RegexComponent, count: Int) where Output == (Substring, C1?, C2?)
Creates a regex component that matches the given component repeated the specified number of times.
init<W, C1>(_ component: some RegexComponent, count: Int) where Output == (Substring, C1?)
Creates a regex component that matches the given component repeated the specified number of times.
init(count: Int, @RegexComponentBuilder _ componentBuilder: () -> some RegexComponent) where Output == Substring
Creates a regex component that matches the given component repeated the specified number of times.
init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10>(count: Int, @RegexComponentBuilder _ componentBuilder: () -> some RegexComponent) where Output == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?, C10?)
Creates a regex component that matches the given component repeated the specified number of times.
init<W, C1, C2, C3, C4, C5, C6, C7, C8, C9>(count: Int, @RegexComponentBuilder _ componentBuilder: () -> some RegexComponent) where Output == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?, C9?)
Creates a regex component that matches the given component repeated the specified number of times.
init<W, C1, C2, C3, C4, C5, C6, C7, C8>(count: Int, @RegexComponentBuilder _ componentBuilder: () -> some RegexComponent) where Output == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?, C8?)
Creates a regex component that matches the given component repeated the specified number of times.
init<W, C1, C2, C3, C4, C5, C6, C7>(count: Int, @RegexComponentBuilder _ componentBuilder: () -> some RegexComponent) where Output == (Substring, C1?, C2?, C3?, C4?, C5?, C6?, C7?)
Creates a regex component that matches the given component repeated the specified number of times.
init<W, C1, C2, C3, C4, C5, C6>(count: Int, @RegexComponentBuilder _ componentBuilder: () -> some RegexComponent) where Output == (Substring, C1?, C2?, C3?, C4?, C5?, C6?)
Creates a regex component that matches the given component repeated the specified number of times.
init<W, C1, C2, C3, C4, C5>(count: Int, @RegexComponentBuilder _ componentBuilder: () -> some RegexComponent) where Output == (Substring, C1?, C2?, C3?, C4?, C5?)
Creates a regex component that matches the given component repeated the specified number of times.
init<W, C1, C2, C3, C4>(count: Int, @RegexComponentBuilder _ componentBuilder: () -> some RegexComponent) where Output == (Substring, C1?, C2?, C3?, C4?)
Creates a regex component that matches the given component repeated the specified number of times.
init<W, C1, C2, C3>(count: Int, @RegexComponentBuilder _ componentBuilder: () -> some RegexComponent) where Output == (Substring, C1?, C2?, C3?)
Creates a regex component that matches the given component repeated the specified number of times.
init<W, C1, C2>(count: Int, @RegexComponentBuilder _ componentBuilder: () -> some RegexComponent) where Output == (Substring, C1?, C2?)
Creates a regex component that matches the given component repeated the specified number of times.
init<W, C1>(count: Int, @RegexComponentBuilder _ componentBuilder: () -> some RegexComponent) where Output == (Substring, C1?)
Creates a regex component that matches the given component repeated the specified number of times.
var regex: Regex<Output>