NAME
	glob - glob matching function
SYNOPSIS
	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 "\\\\".

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.

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

SEE ALSO
	regexp sscanf

Help topics available:
_find_shortest_path _fuzzymatch _get_all_obj glob parse_command
parse_command.native process_string random regexp say
shout shutdown sprintf write

[START|BACK ]




[ NannyMuds main page | FAQ | Contact us ]

You are guest number 79 since February 2020.
This file was last modified: June 2000.