Type Method


Creates and returns a type checking result with the specified regular expression data.


class func regularExpressionCheckingResult(ranges: NSRangePointer, count: Int, regularExpression: NSRegularExpression) -> NSTextCheckingResult



A C array of ranges, which must have at least one element, and the first element represents the overall range.


The number of items in the ranges array.


The regular expression.

Return Value

Returns an NSTextCheckingResult with the specified range and a resultType of regularExpression.

See Also

Text Checking Results for Regular Expressions

var regularExpression: NSRegularExpression?

The regular expression of a type checking result.

Beta Software

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