Contents

wordBoundary

An anchor that matches at a word boundary.

Declaration

static var wordBoundary: Anchor { get }

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.