Skip to content

dos_strincluding

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

Extracts a substring that contains only the characters in a set.

Syntax

(dos_strincluding string charset)

Parameters

string

A string.

char_set

A string interpreted as a set of characters.

Returns

A substring that contains characters string that are in charset, beginning with the first character in string and ending when a character is found in string that is not in charset. dos_strincluding returns an empty substring if the first character in string is not in the specified set.

nil on error.

Example

Command: (dos_strincluding "cabbage" "abc")
"cabba"

Clone this wiki locally