RegexSemanticLevel

A semantic level to use during regex matching.

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

The semantic level determines whether a regex matches with the same character-based semantics as string comparisons or by matching individual Unicode scalar values. See matchingSemantics(_:) for more about changing the semantic level for all or part of a regex.