---
title: RegexRepetitionBehavior
framework: swift
role: symbol
role_heading: Structure
path: swift/regexrepetitionbehavior
---

# RegexRepetitionBehavior

Specifies how much to attempt to match when using a quantifier.

## Declaration

```swift
struct RegexRepetitionBehavior
```

## Overview

Overview See repetitionBehavior(_:) for more about specifying the default matching behavior for all or part of a regex.

## Topics

### Operators

- [==(_:_:)](swift/regexrepetitionbehavior/==(_:_:).md)

### Instance Properties

- [hashValue](swift/regexrepetitionbehavior/hashvalue.md)

### Instance Methods

- [hash(into:)](swift/regexrepetitionbehavior/hash(into:).md)

### Type Properties

- [eager](swift/regexrepetitionbehavior/eager.md)
- [possessive](swift/regexrepetitionbehavior/possessive.md)
- [reluctant](swift/regexrepetitionbehavior/reluctant.md)

### Default Implementations

- [Equatable Implementations](swift/regexrepetitionbehavior/equatable-implementations.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)

## See Also

### Regular Expressions

- [Regex](swift/regex.md)
- [RegexSemanticLevel](swift/regexsemanticlevel.md)
- [RegexWordBoundaryKind](swift/regexwordboundarykind.md)
- [AnyRegexOutput](swift/anyregexoutput.md)
- [RegexComponent](swift/regexcomponent.md)
- [CustomConsumingRegexComponent](swift/customconsumingregexcomponent.md)
