GetToken()
Determines whether a token of the list in the delimiters parameter is present in a string. Returns the token found at position index of the string, as a string. If index is greater than the number of tokens in the string, returns an empty string.
GetToken( string=string, index=number, delimiters=string );
Returns: String
Examples
token_test = GetToken("yellow,red:,orange,blue:;,lavender,pink:;", 2, ":");
writeDump(token_test);
See also
- Strings
- string.getToken()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)