GPDL $MIDDLE

DungeonCraft Help Home

Extracts characters from the middle of a string.

$MIDDLE(string, first, number);

'first' is the index of the first character (starting at 0), and 'number' is the number of characters. Examples:

$MIDDLE("abcd".2,1) = "c"
$MIDDLE("abcd",1,2) = "bc"