From the NannyMUD documentation

LAST CHANGE

2000-12-12

FUNCTION


NAME

        glob - Glob matching function.

SYNTAX

        string *glob(string *list, string pattern)

DESCRIPTION

	Match the pattern pattern against all strings in list, and
	return a new array with all strings that matched. This
	function uses the same syntax for patterns as a normal unix shell.
	
	? Match any character.
	
	* Match any number of (zero or more) characters.
	
	\c match character c even if it's one of the special characters.
	
	Remember that the character "\" has to be escaped with a "\" when
	written as a LPC string. Thus, to match on a single \, you have to
	write "\\\\".

NOTE

        Once again, to match a \ you have to use the string "\\\\".

EXAMPLE

	glob( ({ "foo", "bar", "foobar", "baz" }), "f?o?*")

	-> ({ "foobar" })

	The pattern matches any string where the first character is 'f',
	the third is 'o' and the string is at least length 4.

SEE ALSO

        regexp in efun/special/regexp

SEE ALSO

        sscanf in efun/type_related/sscanf