> For the complete documentation index, see [llms.txt](https://docs.keyfax.biz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.keyfax.biz/product-suite/admin/databox-expressions/text-expressions/substr.md).

# SubStr

Returns part of a string between two indexes. The first character is position 1.

<table><thead><tr><th width="261">Expression</th><th width="148">Databox Value</th><th width="148">Result</th><th>Comments</th></tr></thead><tbody><tr><td><code>Substr(4,2)</code></td><td>289LJ987</td><td>LJ</td><td></td></tr><tr><td><code>Substr(4,999)</code></td><td>289LJ987</td><td>LJ987</td><td>Returns everything after the 4th character position</td></tr></tbody></table>
