Go to: Synopsis. Return value. MEL examples.

Synopsis

substring <string> <int> <int>

substring is undoable, queryable, and editable.

The first argument is the input string. The second and third arguments are the starting and ending character positions within the input string. substring returns the portion of the first string argument bounded by starting and ending positions.

Return value

string

In query mode, return type is based on queried flag.

MEL examples

// returns the string "Hello".
substring "Hello There" 1 5;