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

# Index

Finds the position of an item in a list. Counting starts at 1, and 0 means it was not found.

The first argument is the item to look for, the second is the separator between items.

| Expression                | Databox value         | Result |
| ------------------------- | --------------------- | ------ |
| `Index(" line2", ",")`    | `line1, line2, line3` | `2`    |
| `Index("red", "/")`       | `Blue/Red/Green`      | `0`    |
| `Upper Index("RED", "/")` | `Blue/Red/Green`      | `2`    |

`Index` matches the whole item exactly, including its case and any spaces around it — which is why the second example finds nothing. Putting [Upper](/reference/expression-reference/text-expressions/upper.md) in front first raises the value to capitals, so a search for `RED` matches.

To find where one piece of text sits inside another, rather than which list item it is, use [IndexOf](/reference/expression-reference/text-expressions/indexof.md).
