Function: match

Syntax

match (<string>,<wild>)

Type

numeric

Returns

Whether a string matches a wild pattern: one if it does, zero if it doesn’t.

Parameters

Notes

Strings can also be wild-matched in a conditional expression using the ==% operator, e.g.

if (mystring ==% '#.#') !Text is a decimal value

Examples

The following returns the value of 1.

if (match('file.dat','*.dat')) !it matches