---
title: PredicateExpressions.StringContainsRegex
framework: foundation
role: symbol
role_heading: Structure
path: foundation/predicateexpressions/stringcontainsregex
---

# PredicateExpressions.StringContainsRegex

## Declaration

```swift
struct StringContainsRegex<Subject, Regex> where Subject : PredicateExpression, Regex : PredicateExpression, Subject.Output : BidirectionalCollection, Regex.Output : RegexComponent, Subject.Output.SubSequence == Substring
```

## Topics

### Initializers

- [init(subject:regex:)](foundation/predicateexpressions/stringcontainsregex/init(subject:regex:).md)

### Instance Properties

- [regex](foundation/predicateexpressions/stringcontainsregex/regex.md)
- [subject](foundation/predicateexpressions/stringcontainsregex/subject.md)

## Relationships

### Conforms To

- [Copyable](swift/copyable.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Escapable](swift/escapable.md)
- [PredicateExpression](foundation/predicateexpression.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [StandardPredicateExpression](foundation/standardpredicateexpression.md)
