---
title: "regularExpressionCheckingResult(ranges:count:regularExpression:)"
framework: foundation
role: symbol
role_heading: Type Method
path: "foundation/nstextcheckingresult/regularexpressioncheckingresult(ranges:count:regularexpression:)"
---

# regularExpressionCheckingResult(ranges:count:regularExpression:)

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

## Declaration

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

## Parameters

- `ranges`: A C array of ranges, which must have at least one element, and the first element represents the overall range.
- `count`: The number of items in the ranges array.
- `regularExpression`: The regular expression.

## Return Value

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

## See Also

### Text Checking Results for Regular Expressions

- [regularExpression](foundation/nstextcheckingresult/regularexpression.md)
