-
-
Save iddm/739396dc520ba6c9ec4744d2b8aa6d2f to your computer and use it in GitHub Desktop.
Split string by line in Lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for line in yourString:gmatch("([^\n]*)\n?") do | |
-- do something | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment