> For the complete documentation index, see [llms.txt](https://docs.r.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.r.xyz/glider-ide/api/contracts/contracts.with_name_regex.md).

# Contracts.with\_name\_regex()

Adds a filter to get contracts whose names match the given regex.

`with_name_regex(`*`regex: str`*`) ->` [`Contracts`](/glider-ide/api/contracts.md)

## Query Example

```python
from glider import *

def query():

  non_interface_contract = Contracts().with_name_regex('^[^I][^A-Z].*').exec(1)

  return non_interface_contract
```

## Output Example

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2Fq9dL6ANHWAVCJUkGDdbJ%2Fimage.png?alt=media&amp;token=95c689a4-dec6-4410-88d8-bdd80210f4ab" alt=""><figcaption></figcaption></figure>
