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

# withoutAnchoringBounds

Specifies that ^ and $ will not automatically match the beginning and end of the search range, but will still match the beginning and end of the entire string. This constant has no effect if the search range contains the entire string. See enumerateMatches(in:options:range:using:) for a description of the constant in context.

## Declaration

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

## See Also

### 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)
