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

# withTransparentBounds

Specifies that matching may examine parts of the string beyond the bounds of the search range, for purposes such as word boundary detection, lookahead, etc. 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 withTransparentBounds: NSRegularExpression.MatchingOptions { get }
```

## See Also

### Constants

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