Home »
Code Examples »
Lua Code Examples
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