Difference between revisions of "Trim"
Line 2: | Line 2: | ||
| | ||
− | + | = trim = | |
− | Removes all occurrences of white space characters from the beginning and end of a string input. | + | Removes all occurrences of white space characters from the beginning and end of a string input. |
+ | |||
+ | ====Syntax==== | ||
+ | trim(''inputString'') | ||
+ | |||
+ | ====Arguments==== | ||
+ | |||
+ | inputString: is a string expression. | ||
+ | |||
+ | ====Return type==== | ||
+ | |||
+ | string | ||
+ | |||
+ | ====Example==== | ||
+ | |||
+ | print(trim(" CatGlobe “)); //CatGlobe | ||
+ | |||
+ | ====Availability==== | ||
+ | |||
+ | Version 5.2 | ||
__NOTOC__ | __NOTOC__ | ||
− |
Revision as of 05:10, 30 September 2011
trim
Removes all occurrences of white space characters from the beginning and end of a string input.
Syntax
trim(inputString)
Arguments
inputString: is a string expression.
Return type
string
Example
print(trim(" CatGlobe “)); //CatGlobe
Availability
Version 5.2