glob

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, please see Other Programming Considerations and quote.

result = glob (pattern, string);

pattern

Required. The search pattern
string Required. The string to search
true A pattern match was found
false A pattern match was not found
result = glob (pattern, logfilename);