Answers for "lua substring | get char from from index"

Lua
0

lua substring | get char from from index

text = "Hello world"
--text:sub(<start-index>,<end-index (inclusive)>)
--to get the word "Hello"
sub_text = text:sub(1,5)
Posted by: Guest on February-28-2022

Code answers related to "lua substring | get char from from index"

Browse Popular Code Answers by Language