---
title: "ArgumentMatcher.pattern(argumentName:regex:)"
framework: evaluations
role: symbol
role_heading: Case
path: "evaluations/argumentmatcher/pattern(argumentname:regex:)"
---

# ArgumentMatcher.pattern(argumentName:regex:)

A value that indicates that the argument must be present and its string value must match the specified regex pattern.

## Declaration

```swift
case pattern(argumentName: String, regex: String)
```

## See Also

### String matching

- [ArgumentMatcher.contains(argumentName:substring:)](evaluations/argumentmatcher/contains(argumentname:substring:).md)
- [ArgumentMatcher.hasPrefix(argumentName:prefix:)](evaluations/argumentmatcher/hasprefix(argumentname:prefix:).md)
- [ArgumentMatcher.hasSuffix(argumentName:suffix:)](evaluations/argumentmatcher/hassuffix(argumentname:suffix:).md)
