Splitter.SplitTextByAnyDelimiter
Returns a function that splits text into a list of text at any of the specified delimiters.
Syntax
Splitter.SplitTextByAnyDelimiter(
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 any of the specified delimiters.
Examples
Example #1
Split the input by comma or semicolon, ignoring quotes and quoted delimiters and starting from the beginning of the input.
Splitter.SplitTextByAnyDelimiter({",", ";"}, QuoteStyle.Csv)("a,b;""c,d;e"",f")
Result:
{"a", "b", "c,d;e", "f"}
Example #2
Split the input by comma or semicolon, ignoring quotes and quoted delimiters and starting from the end of the input.
let
startAtEnd = true
in
Splitter.SplitTextByAnyDelimiter({",", ";"}, QuoteStyle.Csv, startAtEnd)("a,""b;c,d")
Result:
{"a,b", "c", "d"}
Category
Splitter