String Functions

absstrlen after afterw ascii before beforew center chngw chr common copattern count decode diff encode filter findw fromw getmatches getrmatches index insertw isalpha isdigit isnum isnumber left leftpc leftw [match] mid midw msar notw numsort numwords pad pass pattern pop push regcomp regerror regexec regfree remw remws repeat rest restw reverse revw rfilter right rightw rindex rmatch rot13 rpattern rstrstr rword sar shift sort splice split strip strlen strstr tolower toupper tow tr translate uniq unshift word

Liam's BitchX Command Reference

BitchX scripting function $match()

match
Function
$match()
Notes
it is possible to embed spaces inside of a word or pattern by including the entire word or pattern in quotation marks. (")
Usage
$match(pattern list of words)
Returns
if no words in the list match the pattern, it returns 0. Otherwise, it returns the number of the word that most exactly matches the pattern (first word is numbered one)
Example
$match(f*bar foofum barfoo foobar) returns 3 $match(g*ant foofum barfoo foobar) returns 0


previous: mask next: match