---
title: "~=(_:_:)"
framework: swift
role: symbol
role_heading: Operator
path: "swift/substring/~=(_:_:)"
---

# ~=(_:_:)

## Declaration

```swift
static func ~= (lhs: Substring, rhs: String) -> Bool
```
