mirror of
https://github.com/JamesonHuang/OpenWrt_Luci_Lua.git
synced 2025-06-20 10:00:38 +00:00
lua string sub from last
This commit is contained in:
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))
|
Reference in New Issue
Block a user