Added in 1.8.10

$mid(text,S,N)

Returns N characters starting at position S in text.

See also $left, $right.

Parameters

Parameter Description
text The text to substring.
S The starting position.
N Number of characters to substring.

Example

; Get '6' characters starting at position '6' in the text 'Hello World'.
//echo -ag $mid(Hello World,6,6)