<!--
{
  "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/simple",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:17_StringProcessing21RegexWordBoundaryKindV6simpleACvpZ"
  },
  "title" : "simple"
}
-->

# simple

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

```
static var simple: RegexWordBoundaryKind { get }
```

## Discussion

A simple word boundary is a position in the input between two characters
that match `/\w\W/` or `/\W\w/`, or between the start or end of the input
and a `\w` character. Word boundaries therefore depend on the option-
defined behavior of `\w`.

---

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)