Lua
C++
Edit

Mid

This function extracts a partial string from a specified position and returns it.

Syntax

Parameter Description
pos The zero-based position in the string to start
length The maximum number of characters to return

Returns

Returns a string extracted from the specified position and length.

Example

local s = "Hello, how are you today?"
Print(Mid(s, 7, 3))
Copyright © 2025 Ultra Software.
All rights reserved.