# Contracts.with\_name\_regex()

`with_name_regex(`*`regex: str`*`) ->` [`Contracts`](https://glide.gitbook.io/main/glider-ide/api/contracts)

## 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&#x26;token=95c689a4-dec6-4410-88d8-bdd80210f4ab" alt=""><figcaption></figcaption></figure>
