Liam's BitchX Command Reference
BitchX scripting function $copattern()
- copattern
- Function
- $copattern()
- Usage
- $copattern(pattern var_1 var_2)
- Returns
- Given a pattern and two variable names, it returns all words
in the variable_2 corresponding to any words in variable_1 that
are matched by the pattern
- Example
- @nicks = [hop IRSMan skip]
@userh = [jnelson@iastate.edu irsman@iastate.edu sanders@rush.cc.edu]
$copattern(*@iastate.edu userh nicks)
returns "hop IRSMan"