<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@contract-case/case-definition-dsl](./case-definition-dsl.md) &gt; [matchers](./case-definition-dsl.matchers.md) &gt; [strings](./case-definition-dsl.matchers.strings.md) &gt; [StringContaining](./case-definition-dsl.matchers.strings.stringcontaining.md)

## matchers.strings.StringContaining class

Matches any string that contains the given substring.

**Signature:**

```typescript
export declare class StringContaining extends AnyMatcherWithExample
```

**Extends:** AnyMatcherWithExample

## Constructors

<table><thead><tr><th>

Constructor

</th><th>

Modifiers

</th><th>

Description

</th></tr></thead>
<tbody><tr><td>

[(constructor)(substring, example)](./case-definition-dsl.matchers.strings.stringcontaining._constructor_.md)

</td><td>

</td><td>

Matches any string that contains the given substring.

</td></tr>
</tbody></table>

## Methods

<table><thead><tr><th>

Method

</th><th>

Modifiers

</th><th>

Description

</th></tr></thead>
<tbody><tr><td>

[toJSON()](./case-definition-dsl.matchers.strings.stringcontaining.tojson.md)

</td><td>

</td><td>

For non-TypeScript implementations (see `AnyMatcher.toJSON`<!-- -->)

</td></tr>
</tbody></table>
