anyNonNewline
A character class that matches any element that isn’t a newline.
- iOS
- 16.0+
- macOS
- 13.0+
- tvOS
- 16.0+
- watchOS
- 9.0+
static var anyNonNewline: CharacterClass { get }
This character class is unaffected by the dotMatchesNewlines()
method. To match any character, including newlines, see any
.
This character class is equivalent to the regex syntax “dot” metacharacter with single-line mode disabled: (?-s:.)
.