Skip to content

dos_strfindoneof

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

Finds the first matching character from a set.

Syntax

(dos_strfindoneof string charset)

Parameters

string

A string.

substring

A string interpreted as a set of characters.

Returns

The zero-based index of the first character in string that is also in substring; –1 if there is no match.

nil on error.

Example

Command: (dos_strfindoneof "abcdefg" "xd")
3

Clone this wiki locally