mid
Returns a subrange out of a string.
Syntax
mid(string, char, length )
Argument
- string
- The string to subdivide.
- char
- The character at which the subrange begins.
- length
- The length of the subrange.
Example
Templex Expression | Result |
---|---|
{s = "The quick brown fox jumped over the lazy
dog."
|
fox |
Comments
If length exceeds the length of the string, the subrange ends with the last character in the string.