pattern
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | pattern [2007/05/15 01:28] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | # $EPIC: pattern.txt, | ||
+ | ======Synopsis: | ||
+ | $__pattern__(< | ||
+ | |||
+ | ======Technical: | ||
+ | * If the < | ||
+ | * This function returns a space separated word list of all of the words in <word list> that are matched by < | ||
+ | * This is the complement to $[[filter]](), | ||
+ | * Remember that the words in <word list> are [[what is a word|words]], | ||
+ | * The < | ||
+ | * Double quotes around words are not lost if you have [[xdebug]] dword turned on. This is an important difference from epic4. | ||
+ | * There is no reasonable way to support matching a < | ||
+ | |||
+ | ======Practical: | ||
+ | This function lets you " | ||
+ | of the words that match the pattern and discarding all of the words that | ||
+ | do not match the pattern. | ||
+ | function, you can quickly find all words in a word list that start with | ||
+ | a particular substring. | ||
+ | |||
+ | ======Returns: | ||
+ | The list of words from <word list> that are matched by < | ||
+ | |||
+ | ======History: | ||
+ | This function first appeared in " | ||
+ | |||
+ | ======Examples: | ||
+ | < | ||
+ | $pattern(*oo* foobar blah booya) returns " | ||
+ | $pattern(*a* hello there bob) returns nothing | ||
+ | $pattern(irc* $myservers()) | ||
+ | that start with the string " | ||
+ | </ | ||
pattern.txt · Last modified: 2007/05/15 01:28 by 127.0.0.1