---
title: inverted
framework: regexbuilder
role: symbol
role_heading: Instance Property
path: regexbuilder/anchor/inverted
---

# inverted

The inverse of this anchor, which matches at every position that this anchor does not.

## Declaration

```swift
var inverted: Anchor { get }
```

## Discussion

Discussion For the wordBoundary and textSegmentBoundary anchors, the inverted version corresponds to \B and \Y, respectively.
