---
title: "intersection(_:)"
framework: regexbuilder
role: symbol
role_heading: Instance Method
path: "regexbuilder/characterclass/intersection(_:)"
---

# intersection(_:)

Returns a character class from the intersection of this class and the given class.

## Declaration

```swift
func intersection(_ other: CharacterClass) -> CharacterClass
```
