mirror of
https://github.com/JamesonHuang/OpenWrt_Luci_Lua.git
synced 2025-01-31 02:34:39 +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…
x
Reference in New Issue
Block a user