Log In  
Log In  

Cart [#split_string-0#] | Code | 2018-12-09 | License: CC4-BY-NC-SA | Embed

SPLIT_STRING is make a table with using a delimiter from string value.
There output the all value become string value in table.

split(string, delimiter, delimiter-2d)

a=split('1 a 20 split_test --------',' ')

for v in all(a) do
print(v)
end

a=split('1 2 3;a b c;this is split',' ',';')
for b in all(a) do
    for v in all(b) do
     print(v)
    end
end
P#59851 2018-12-09 09:45 ( Edited 2018-12-09 09:47)


[Please log in to post a comment]

About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2019-04-18 19:18 | 0.033s | 2097k | Q:20