StringTools[TrimLeft] - trim leading whitespace from a string
StringTools[TrimRight] - trim trailing whitespace from a string
StringTools[Trim] - trim leading and trailing whitespace from a string
|
Calling Sequence
|
|
TrimLeft( s )
TrimRight( s )
Trim( s )
|
|
Description
|
|
•
|
The TrimLeft(s) command removes the leading whitespace from string s and returns the resulting terminal substring. If string s has no leading whitespace, then it is returned unchanged.
|
•
|
The TrimRight(s) command removes the trailing whitespace from string s and returns the resulting substring. If string s has no trailing whitespace, then it is returned unchanged.
|
|
The TrimRight function is defined by .
|
•
|
The Trim(s) command is defined to be the composition .
|
|
|
Examples
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
|
|
Download Help Document
Was this information helpful?