mirror of
https://github.com/JamesonHuang/OpenWrt_Luci_Lua.git
synced 2024-11-23 22:00:11 +00:00
lua string sub from last
This commit is contained in:
parent
b0afe47566
commit
391bf4ac34
2
1_6.lua_test/1_2.test_str_sub_from_last.lua
Normal file
2
1_6.lua_test/1_2.test_str_sub_from_last.lua
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
local str = "hello world!"
|
||||||
|
print(string.sub(str, -3, -1))
|
Loading…
Reference in New Issue
Block a user