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