token

Summary

Gets the token at the specified index.

Signatures

Click on a signature to select it and view its documentation.

Usage

public string token(string delimiter, int index)

Parameters

delimiter

The string or character that separates each token.

index

The token index to return.

Description

If there is no token at the specified index, an empty string is returned.

Examples

Get email domain without manually tokenizing a string with `System.String.split`
1
2
3
import System;
 
string str = "foo

Share

HTML | BBCode | Direct Link