Bence2004 Posted December 23, 2019 Share Posted December 23, 2019 A "{3}" stringből hogyan hámozzam ki a 3-mas számot? Link to comment
Moderators Patrick Posted December 23, 2019 Moderators Share Posted December 23, 2019 (edited) String libraryban lévő sub függvényt kell használnod. (http://Lua-users.org/wiki/StringLibraryTutorial) [2, n-1] intervallumba eső karakterek kivétele egy stringből: string = "{123}" return string:sub(2, #string-1) -- result: "123" Edited December 23, 2019 by stPatrick Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now