---
title: wordBoundary
framework: regexbuilder
role: symbol
role_heading: Type Property
path: regexbuilder/anchor/wordboundary
---

# wordBoundary

An anchor that matches at a word boundary.

## Declaration

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

## Discussion

Discussion Word boundaries are identified using the Unicode default word boundary algorithm by default. To specify a different word boundary algorithm, use the wordBoundaryKind(_:) method. This anchor is equivalent to \b in regex syntax.
