This shows you the differences between two versions of the page.
— |
split [2006/08/29 16:08] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | # $EPIC: split.txt,v 1.2 2006/08/20 16:57:01 sthalik Exp $ | ||
+ | ======Synopsis:====== | ||
+ | $__split__(<chars> <text>) | ||
+ | |||
+ | ======Technical:====== | ||
+ | This function converts each specified character found in the input text | ||
+ | to a space. | ||
+ | |||
+ | ======Practical:====== | ||
+ | This function is mostly useful for parsing lines of input that contain | ||
+ | a particular character as a delimiter. | ||
+ | |||
+ | ======Returns:====== | ||
+ | input text with characters swapped | ||
+ | |||
+ | ======Examples:====== | ||
+ | <file> | ||
+ | $split(: a:b:c) returns "a b c" | ||
+ | $split(,. a,b.c) returns "a b c" | ||
+ | </file> | ||