RPTools

Personal tools
From MapToolDoc

substring

substring() Function

Introduced in version 1.3b48

Returns the substring of the string from the start to the end indexes. Indexes for strings start at 0. If the end parameter is not specified then the substring extends to the end of the string.

Usage

  1. substring(str, start)
  1. substring(str, start, end)

Examples

  1.     [substring("This is a test", 5)]
  2.     [substring("This is a test", 5, 7)]

Returns

   is a test
   is