Extracted from Pike v7.4 release 97 at 2004-08-02.
pike.ida.liu.se
[Top]
predef::

Method glob()


Method glob

int(0..1) glob(string glob, string str)
array(string) glob(string glob, array(string) arr)

Description

Match strings against globs.

In a glob string a question sign matches any character and an asterisk matches any string.

When the second argument is a string and str matches the glob glob 1 will be returned, 0 (zero) otherwise.

If the second array is an array and array containing the strings in arr that match glob will be returned.

See also

sscanf() , Regexp