the
trNthField
of
(
string ,
delimiter ,
index )
trNthField
(
string ,
delimiter ,
index )
String yields any string
. Delimiter yields a string
describing a set of characters. Index yields an integer
.
The trNthField
function returns a chunk of the specified string delimited by any of the characters in the specified delimiter, not including any trailing empty chunks. Index starts at 1.
Delimiter describes a set of characters, not a string. A range of characters can be specified by putting a hyphen between two characters; to match a literal hyphen, put a hyphen at the beginning or end. For example, the following pattern matches all numbers and basic Latin letters, as well as hyphens: A-Za-z0-9-
If index is less than 1 or greater than
, trCountFields
(string, delimiter)empty
is returned.