<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/RegexWordBoundaryKind",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:17_StringProcessing21RegexWordBoundaryKindV"
  },
  "title" : "RegexWordBoundaryKind"
}
-->

# RegexWordBoundaryKind

A word boundary algorithm to use during regex matching.

```
struct RegexWordBoundaryKind
```

## Overview

See [`wordBoundaryKind(_:)`](/documentation/Swift/Regex/wordBoundaryKind(_:)) for information about specifying the
word boundary kind for all or part of a regex.

## Topics

### Operators

[`static func == (RegexWordBoundaryKind, RegexWordBoundaryKind) -> Bool`](/documentation/Swift/RegexWordBoundaryKind/==(_:_:))

Returns a Boolean value indicating whether two values are equal.

### Instance Properties

[`var hashValue: Int`](/documentation/Swift/RegexWordBoundaryKind/hashValue)

The hash value.

### Instance Methods

[`func hash(into: inout Hasher)`](/documentation/Swift/RegexWordBoundaryKind/hash(into:))

Hashes the essential components of this value by feeding them into the
given hasher.

### Type Properties

[`static var `default`: RegexWordBoundaryKind`](/documentation/Swift/RegexWordBoundaryKind/default)

A word boundary algorithm that implements the “default word boundary”
Unicode recommendation.

[`static var simple: RegexWordBoundaryKind`](/documentation/Swift/RegexWordBoundaryKind/simple)

A word boundary algorithm that implements the “simple word boundary”
Unicode recommendation.

### Default Implementations

[Equatable Implementations](/documentation/Swift/RegexWordBoundaryKind/Equatable-Implementations)

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)