| Prev | Next | String Verbs > string.firstWord |
string.firstWord
| Syntax |
string.firstWord (string)
|
| Params |
string is the string from which you wish to extract the first word.
|
| Action |
Extracts the first word from string. A word is defined as a string of characters terminated by the character currently defined as the wordChar.
|
| Returns |
The resulting string.
|
| Examples |
string.firstWord ("Eat a good lunch!") » "Eat"
string.firstWord ("Coming-into-being is here.")
This return value assumes a space is still the wordChar.
The first hyphen occurs after the word "coming." This example sets hyphen as the wordChar.
The string returned by this verb does not include the word delimiter. |
| See Also |
string.getWordChar
|
| Prev | Next | String Verbs > string.firstWord |