RosettaCodeData/Task/Tokenize-a-string-with-escaping/Lingo/tokenize-a-string-with-escaping-2.lingo
2023-07-01 13:44:08 -04:00

5 lines
143 B
Text

str = "one^|uno||three^^^^|four^^^|^cuatro|"
sep = "|"
esc = "^"
put tokenize(str, sep, esc)
-- ["one|uno", "", "three^^", "four^|cuatro", ""]