lua string sub from last

This commit is contained in:
JamesonHuang 2015-06-27 17:34:54 +08:00
parent b0afe47566
commit 391bf4ac34

View File

@ -0,0 +1,2 @@
local str = "hello world!"
print(string.sub(str, -3, -1))