---
title: anyGraphemeCluster
framework: swift
role: symbol
role_heading: Type Property
path: swift/regexcomponent/anygraphemecluster
---

# anyGraphemeCluster

A character class that matches any single Character, or extended grapheme cluster, regardless of the current semantic level.

## Declaration

```swift
static var anyGraphemeCluster: CharacterClass { get }
```

## Discussion

Discussion This character class is equivalent to \X in regex syntax.

## See Also

### Matching substring sequences

- [anyOf(_:)](swift/regexcomponent/anyof(_:)-3pexl.md)
- [anyOf(_:)](swift/regexcomponent/anyof(_:)-4xgea.md)
- [any](swift/regexcomponent/any.md)
- [anyNonNewline](swift/regexcomponent/anynonnewline.md)
- [digit](swift/regexcomponent/digit.md)
- [hexDigit](swift/regexcomponent/hexdigit.md)
- [word](swift/regexcomponent/word.md)
