Functions

regNthField

Supported By

Syntax

[the] regNthField of ( string , delimiter , index )

regNthField ( string , delimiter , index )

String yields any string. Delimiter yields a string describing a regular expression. Index yields an integer.

Description

The regNthField 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 regCountFields(string, delimiter), empty is returned.

The delimiter is a regular expression. For a literal version of this function, see nthField or csNthField.

See Also

nthField, csNthField, trNthField, countFields, csCountFields, regCountFields, trCountFields