---
title: textSegmentBoundary
framework: regexbuilder
role: symbol
role_heading: Type Property
path: regexbuilder/anchor/textsegmentboundary
---

# textSegmentBoundary

An anchor that matches at a grapheme cluster boundary.

## Declaration

```swift
static var textSegmentBoundary: Anchor { get }
```

## Discussion

Discussion This anchor is equivalent to \y in regex syntax.
