# $EPIC: pattern.txt,v 1.3 2007/05/15 01:28:58 jnelson Exp $
$pattern(<pattern> <word list>)
This function lets you “filter” <word list> through a pattern, keeping all of the words that match the pattern and discarding all of the words that do not match the pattern. By appending * to a string and using this function, you can quickly find all words in a word list that start with a particular substring.
The list of words from <word list> that are matched by <pattern>.
This function first appeared in “plus-2” (post-ircII, pre-EPIC)
$pattern(*oo* foobar blah booya) returns "foobar booya" $pattern(*a* hello there bob) returns nothing $pattern(irc* $myservers()) returns all servers you are connected to that start with the string "irc".