Skip to content

Type Property

regularExpression

iOS 8.0+ iPadOS 8.0+ Mac Catalyst 8.0+ macOS 10.10+ tvOS 9.0+ watchOS 2.0+
The search string is treated as an ICU-compatible regular expression; if set, no other options can apply except .caseInsensitive and .anchored
static let regularExpression: String.CompareOptions