trim

From RPTools Wiki
Revision as of 22:21, 9 February 2023 by Conversion script (talk | contribs) (Conversion script moved page trim to Trim without leaving a redirect: Converting page title to first-letter uppercase)
Jump to navigation Jump to search

trim() Function

Introduced in version 1.3b48
Returns a copy of the string that is passed in with the leading and trailing white space removed.

Usage

trim(str)

Parameter

  • str - The string that has its leading and trailing white space removed.

Examples

[r: ":" + trim("     this is a test") + ":"]
[r: ":" + trim("this is a test      ") + ":"]
[r: ":" + trim("     this is a test       ") + ":"]

Returns

   :this is a test:
   :this is a test:
:this is a test:

See Also