This function extracts a partial string from a specified position and returns it.
| Parameter | Description |
|---|---|
| pos | The zero-based position in the string to start |
| length | The maximum number of characters to return |
Returns a string extracted from the specified position and length.
local s = "Hello, how are you today?"
Print(Mid(s, 7, 3))