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

# value

The captured value, if there was a capture.

## Declaration

```swift
var value: Any? { get }
```

## Discussion

Discussion If nothing was captured, value is nil.
