Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- text = "this string is for splitting" -- our text
- for a = 0, string.len(text) do -- for 1 to the number of letters in our text + 1
- print (string.sub(text, a,a)) -- split the string with the start and end at "a"
- end -- repeat untill the for loop ends
Advertisement
Add Comment
Please, Sign In to add comment