- iOS 4.0+
- macOS 10.7+
- tvOS 9.0+
- watchOS 2.0+
- Mac Catalyst 13.0+Beta
Expression Case Insensitive
Match letters in the pattern independent of case.
Expression Allow Comments And Whitespace
Ignore whitespace and #-prefixed comments in the pattern.
Expression Ignore Metacharacters
Treat the entire pattern as a literal string.
Expression Dot Matches Line Separators
. to match any character, including line separators.
Expression Anchors Match Lines
$ to match the start and end of lines.
Expression Use Unix Line Separators
\n as a line separator (otherwise, all standard line separators are used).
Expression Use Unicode Word Boundaries
TR#29 to specify word boundaries (otherwise, traditional regular expression word boundaries are used).
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.Learn more about using Apple's beta software