---
title: NSRegularExpression.MatchingFlags
framework: foundation
role: symbol
role_heading: Structure
path: foundation/nsregularexpression/matchingflags
---

# NSRegularExpression.MatchingFlags

Set by the Block as the matching progresses, completes, or fails. Used by the method enumerateMatches(in:options:range:using:).

## Declaration

```swift
struct MatchingFlags
```

## Topics

### Constants

- [progress](foundation/nsregularexpression/matchingflags/progress.md)
- [completed](foundation/nsregularexpression/matchingflags/completed.md)
- [hitEnd](foundation/nsregularexpression/matchingflags/hitend.md)
- [requiredEnd](foundation/nsregularexpression/matchingflags/requiredend.md)
- [internalError](foundation/nsregularexpression/matchingflags/internalerror.md)

### Initializers

- [init(rawValue:)](foundation/nsregularexpression/matchingflags/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)

## See Also

### Constants

- [NSRegularExpression.Options](foundation/nsregularexpression/options-swift.struct.md)
- [NSRegularExpression.MatchingOptions](foundation/nsregularexpression/matchingoptions.md)
