---
title: anchored
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/nsregularexpression/matchingoptions/anchored
---

# anchored

Specifies that matches are limited to those at the start of the search range. See enumerateMatches(in:options:range:using:) for a description of the constant in context.

## Declaration

```swift
static var anchored: NSRegularExpression.MatchingOptions { get }
```

## See Also

### Constants

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