The issue is simple and I know it is possible but I cant deal with strings, I just don’t get them.
I want to split strings with spaces but I need to check if the spaces are not in brackets.
Willing to use other stuff besides string.split because that seems reasonable.
local str: string = "this is test (ff, gg)"
str = string.gsub(str, "%s+", " ") -- //"this is test (ff, gg)" = "this is test (ff, gg)"
local tabl = string.split(str, " ")
-- //String will be split like: {"this", "is", "test", "(ff," , "gg)"}
-- //Instead of: {"(ff," , "gg)"}
-- //I want: {"(ff, gg)"}