Str.mid
From OpenEUO
Calling Pattern
Call
local r = sl.str.mid(a,m,n)
Args
a is a string m,n are numbers
Results
r is a string
Usage Example
local s = sl.str local r = s.mid('Get the middle part of a string.',9,11) print(r)
--> middle part
Description
Mid returns the n characters from string a, beginning at position m.
Upon Error
Mid fails silently. If mid receives inappropriate arguments then a '' (empty string) is returned.