RPTools

Personal tools
From MapToolDoc

trim

Contents

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

  1. trim(str)

Parameter

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

Examples

  1. [r: ":" + trim("     this is a test") + ":"]
  2. [r: ":" + trim("this is a test      ") + ":"]
  3. [r: ":" + trim("     this is a test       ") + ":"]

Returns

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

See Also

substring()