glob

Description

The glob() function searches a character string for a specific shell-style pattern. glob() is often used to match patterns to file names because the patterns that are used are the same patterns that are used by the Unix/Linux shell file name matching algorithms.

For more information on creating search patterns, see Wildcard Search Characters and quote.

Syntax

result = glob (pattern, string);

Arguments

pattern

Required. The search pattern
string Required. The string to search

Return Values

true A pattern match was found
false A pattern match was not found

Example

result = glob (pattern, logfilename);