wordBoundaryKind(_:)

Returns a regular expression that uses the specified word boundary algorithm.

iOS
16.0+
macOS
13.0+
tvOS
16.0+
watchOS
9.0+
func wordBoundaryKind(_ wordBoundaryKind: RegexWordBoundaryKind) -> Regex<Regex<Output>.RegexOutput>

Parameters

wordBoundaryKind

The algorithm to use for determining word boundaries.

Returns

The modified regular expression.