# text.sub · Rell standard library · Chromia Docs (concept)

> pure function sub(start: integer ): text Returns a substring of this text starting from the specified index (inclusive). Parameters start — the starting in

Source: https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/root/text/sub/

FUNCTION

# text.sub

```signature
pure function sub(start: integer): text
```

Returns a substring of this text starting from the specified index (inclusive).

**Parameters**

* **start** — the starting index of the substring

Since 0.6.0

---

```signature
pure function sub(start: integer, end: integer): text
```

Returns a substring of this text from the specified start index (inclusive)
to the specified end index (exclusive).

**Parameters**

* **start** — the start index of the substring
* **end** — the end index of the substring

Since 0.6.0

[View this page on docs.chromia.com](https://docs.chromia.com/pages/rell-stdlib/-rell%20-system%20-library/%5Broot%5D/text/sub.html)Generated API reference, mirrored from the live docs
