diff --git a/1_6.lua_test/1_2.test_str_sub_from_last.lua b/1_6.lua_test/1_2.test_str_sub_from_last.lua new file mode 100644 index 0000000..9fcf674 --- /dev/null +++ b/1_6.lua_test/1_2.test_str_sub_from_last.lua @@ -0,0 +1,2 @@ +local str = "hello world!" +print(string.sub(str, -3, -1))