Skip to content

substring

substring(string, start, end?) → string · String

Extract part of a string by index (zero-based).

  • string (required): the source string

  • start (required): starting index (zero-based, inclusive)

  • end (optional): ending index (exclusive). If omitted, goes to end.

utlx
substring("Hello World", 6)             // "World"
substring("Hello World", 0, 5)          // "Hello"

Released under AGPL-3.0.