---
title: name
framework: swift
role: symbol
role_heading: Instance Property
path: swift/anyregexoutput/element/name
---

# name

The name of this capture, if the capture is named.

## Declaration

```swift
var name: String? { get }
```

## Discussion

Discussion If the capture is unnamed, name is nil.
