Jump to content

String segítség


Recommended Posts

  • Moderators
Posted (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 by stPatrick

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...