the
nthField
of
(
string ,
delimiter ,
index )
nthField
(
string ,
delimiter ,
index )
String and delimiter yield string
s. Index yields an integer
.
The nthField
function returns a chunk of the specified string delimited by the specified delimiter. Index starts at 1.
If index is less than 1 or greater than
, countFields
(string, delimiter)empty
is returned.
The delimiter is case-insensitive. For a case-sensitive version of this function, see csNthField
. For a regular expression-based version of this function, see regNthField
.