Skip to content

dos_strreversefind

Dale Fugier edited this page Jul 1, 2026 · 1 revision

Finds a character inside a larger string; starts from the end.

Syntax

(dos_strreversefind string char)

Parameters

string

A string.

substring

A character to search for.

Returns

The zero-based index of the last character in string that matches the requested character, –1 if the character is not found.

nil on error.

Example

Command: (dos_strreversefind "abcabc" "b")
4

Clone this wiki locally