$str.section

$str.section Returns a section of the string.
Usage
<string> $str.section(<string_to_split:string>,<separator:string>,<pos_from:int>,<pos_to:int>)
Description
Returns a section of the string. The <string_to_split> is treated as a sequence of fields separated by <separator>. The returned string consists of the fields from position start <pos_from> to position end <pos_to>. Fields are numbered 0, 1, 2, etc., counting from the left, and -1, -2, etc., counting from right to left.
Examples
%s = $str.section( "forename**middlename**surname**phone","**", 2, 2 ); %s is "surname".

Index, Functions