---
title: matchedString
framework: datadetection
role: symbol
role_heading: Instance Property
path: datadetection/ddmatch/matchedstring
---

# matchedString

A substring that the data detection system identifies from an original string as a common type of data.

## Declaration

```swift
var matchedString: String { get }
```

## Discussion

Discussion Use DDMatch subclasses that the data detection system provides for a semantic interpretation of this string.
