CharacterClass
A class of characters that match in a regex.
- iOS
- 16.0+
- macOS
- 13.0+
- tvOS
- 16.0+
- watchOS
- 9.0+
You’re reading documentation from an older version of Swift 6.1.
A symbol with the same signature as this one exists in the latest stable release of Swift 6.1.
struct CharacterClassA character class can represent individual characters, a group of characters, the set of character that match some set of criteria, or a set algebraic combination of all of the above.