Lua - Split a string by a character Code Example

The code for Split a string by a character

-- for splitting a string by a character
-- We can use pattern matching
x, y = string.match("HELLO-WORLD", "(.*)%-(.*)")
Code by IncludeHelp, on January 2, 2023 20:40

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.