rpattern
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | rpattern [2006/08/29 16:08] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | # $EPIC: rpattern.txt, | ||
| + | ======Synopsis: | ||
| + | $__rpattern__(< | ||
| + | |||
| + | ======Technical: | ||
| + | * If the < | ||
| + | * This function returns a space separated pattern list of all of the patterns in <pattern list> that match < | ||
| + | * This is the complement to $[[rfilter]](), | ||
| + | * Double quoted words are honored, but the double quotes will be lost in the return value. | ||
| + | |||
| + | ======Practical: | ||
| + | This function lets you " | ||
| + | of the patterns that match a given word, and discarding all of the patterns | ||
| + | that do not match the given word. If you have a list of patterns, some of | ||
| + | which match a word (say, a nick!user@host string) and some of which don't, | ||
| + | and you want to remove the ones that don't, this function will do that. | ||
| + | |||
| + | ======Returns: | ||
| + | The list of patterns from <pattern list> that match < | ||
| + | |||
| + | ======History: | ||
| + | This function first appeared in " | ||
| + | |||
| + | ======Examples: | ||
| + | < | ||
| + | $rpattern(foobar f* *oo* a* *c) | ||
| + | $rpattern(hello hello a* *lo*) returns "hello *lo*" | ||
| + | </ | ||
rpattern.txt · Last modified: 2006/08/29 16:08 by 127.0.0.1
