Owning Class: string
Requires: MathScript RT Module
c = strtoken(a)
c = strtoken(a, b)
[c, d] = strtoken(a)
[c, d] = strtoken(a, b)
Legacy Name: strtok
Determines the first delimited token in a string. c = strtoken(a) determines the first token that is delimited by white space. c = strtoken(a, b) determines the first token that is delimited by another string.
| Name | Description |
|---|---|
| a | Specifies the string in which you want to find the first delimited token. |
| b | Specifies a string that delimits the token you want to find. |
| Name | Description |
|---|---|
| c | Returns the first delimited token. c is a string. |
| d | Returns the part of a, including the delimiter, that follows c. |
A = 'this is a test for strtoken'
B = 'is'
[C, D] = strtoken(A, B)