---
title: NSRegularExpression.MatchingOptions
framework: foundation
role: symbol
role_heading: Structure
path: foundation/nsregularexpression/matchingoptions
---

# NSRegularExpression.MatchingOptions

The matching options constants specify the reporting, completion and matching rules to the expression matching methods. These constants are used by all methods that search for, or replace values, using a regular expression.

## Declaration

```swift
struct MatchingOptions
```

## Topics

### Constants

- [reportProgress](foundation/nsregularexpression/matchingoptions/reportprogress.md)
- [reportCompletion](foundation/nsregularexpression/matchingoptions/reportcompletion.md)
- [anchored](foundation/nsregularexpression/matchingoptions/anchored.md)
- [withTransparentBounds](foundation/nsregularexpression/matchingoptions/withtransparentbounds.md)
- [withoutAnchoringBounds](foundation/nsregularexpression/matchingoptions/withoutanchoringbounds.md)

### Initializers

- [init(rawValue:)](foundation/nsregularexpression/matchingoptions/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.MatchingFlags](foundation/nsregularexpression/matchingflags.md)
