> For the complete documentation index, see [llms.txt](https://docs.cascade.io/cascade/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cascade.io/cascade/functions-and-expressions/functions/text/mid.md).

# MID

MID(`string`, `start_index`, `length`)

Returns a string beginning at specified starting index.

### Arguments

| Input         | Description                                 |
| ------------- | ------------------------------------------- |
| `string`      | String to return substring of               |
| `start_index` | Index within `string` to start substring at |
| `length`      | Desired length of substring (optional)      |

### Output

A substring of input `string`

### Example

{% embed url="<https://datawrapper.dwcdn.net/NrYMK/1>" %}
