Liam's BitchX Command Reference
BitchX scripting function $msar()
- msar
- Function
- $msar()
- Usage
- $msar(c/search/replace/data)
- Returns
- the result of changing the search
string to replace in the given data.
The command character c can be any combination of:
i to make the replacement case-insensitive;
r to treat data as the name of a variable and to
operate on its value, storing the result back in the variable;
g to do all matches in the given data (global)
and not just the first.
The delimiter can be / but can be any other character that
is not a command letter (i r or g); obviously you must
use the same delimiter in all three places.
Returns the empty string on error.