CharacterClass

A class of characters that match in a regex.

iOS
16.0+
macOS
13.0+
tvOS
16.0+
watchOS
9.0+
struct CharacterClass

A 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.