---
title: regex
framework: swift
role: symbol
role_heading: Instance Property
path: swift/regexcomponent/regex
---

# regex

The regular expression represented by this component.

## Declaration

```swift
var regex: Regex<Self.RegexOutput> { get }
```
