# index var (regex)

Source: https://ref.dm-lang.org/regex/var/index_page
Added in BYOND 510.

After a call to Find(), this var contains the index where the match was found.

Replace() on a non-global pattern will also store the index of the match here.

### See also
- [regex datum](https://ref.dm-lang.org/regex/index.md)
- [Find proc (regex)](https://ref.dm-lang.org/regex/proc/Find.md)
- [Replace proc (regex)](https://ref.dm-lang.org/regex/proc/Replace.md)
- [match var (regex)](https://ref.dm-lang.org/regex/var/match.md)
- [next var (regex)](https://ref.dm-lang.org/regex/var/next.md)
