Skip to content

dos_strmatch

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

Matches a string against a wildcard string.

Syntax

(dos_strmatch string wildcard [T])

Parameters

string

A string.

wildcard

A string containing wildcard characters (* and ?).

T

If specified, then a case-insensitive comparison is performed. Otherwise, a case-sensitive comparison is performed.

Returns

T if string matches wildcard.

nil on error.

Example

Command: (dos_strmatch "MyLayerName" "My*")
T

Command: (dos_strmatch "MyDrawing.dwg" "My*.*")
T

Clone this wiki locally