Structure_StringProcessing5.9.0
RegexRepetitionBehavior
Specifies how much to attempt to match when using a quantifier.
- iOS
- 16.0+
- macOS
- 13.0+
- tvOS
- 16.0+
- watchOS
- 9.0+
struct RegexRepetitionBehavior
See Regex.repetitionBehavior(_:)
for more about specifying the default matching behavior for all or part of a regex.
Citizens in _StringProcessing
Conformances
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.
Members
static var eager: RegexRepetitionBehavior
Match as much of the input string as possible, backtracking when necessary.
static var possessive: RegexRepetitionBehavior
Match as much of the input string as possible, performing no backtracking.
static var reluctant: RegexRepetitionBehavior
Match as little of the input string as possible, expanding the matched region as necessary to complete a match.
var dslTreeKind: DSLTree._AST.QuantificationKind