Splitter.SplitTextByEachDelimiter
Returns a function that splits text into a list of text at each specified delimiter in sequence.
Syntax
Splitter.SplitTextByEachDelimiter(
delimiters as list,
optional quoteStyle as QuoteStyle.Type,
optional startAtEnd as logical
) as function
Remarks
Returns a function that splits text into a list of text at each specified delimiter in sequence.
Examples
Example #1
Split the input by comma, then semicolon, starting from the beginning of the input.
Splitter.SplitTextByEachDelimiter({",", ";"})("a,b;c,d")
Result:
{"a", "b", "c,d"}
Example #2
Split the input by comma, then semicolon, treating quotes like any other character and starting from the end of the input.
let
startAtEnd = true
in
Splitter.SplitTextByEachDelimiter({",", ";"}, QuoteStyle.None, startAtEnd)("a,""b;c"",d")
Result:
{"a,""b", "c""", "d"}
Category
Splitter