# getPattern

**Kind:** Function

**Source:** [`src/utils/url.ts`](https://github.com/honojs/hono/blob/main/src/utils/url.ts#L51)

**Part of:** [Utils](subsystem-src-utils)

## Signature

```ts
function getPattern(label: string, next: string): Pattern | null
```

## Parameters

| Name | Type |
|---|---|
| `label` | `string` |
| `next` | `string` |

**Returns:** `Pattern | null`

## Used by

2 references from 2 files. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.

### Imported by (2)

- `Node` — `src/router/trie-router/node.ts`:25
- `matchedRoutes` — `src/helper/route/index.ts`:32
