unicodeScalar

Match at the Unicode scalar level.

iOS
16.0+
macOS
13.0+
tvOS
16.0+
watchOS
9.0+
static var unicodeScalar: RegexSemanticLevel { get }

At this semantic level, the string’s UnicodeScalarView is used for matching, and each matched element is a UnicodeScalar value.