samedi 28 mars 2015

LUA - Find substring of string w/o knowing the length of string

I have a string x: x = "{abc}{def}{ghi}" And I need to print the string between second { and second }, in this case def. How can I do this without knowing the length of the string? For example, the string x could also be {abcde}{fghij}{klmno}"


Aucun commentaire:

Enregistrer un commentaire