Splitter.SplitTextByCharacterTransition
Syntax
Splitter.SplitTextByCharacterTransition(before as anynonnull, after as anynonnull) as function
About
Returns a function that splits text into a list of text according to a transition from one kind of character to another. The before
and after
parameters can either be a list of characters, or a function that takes a character and returns true/false.
Example 1
Split the input whenever an upper or lowercase letter is followed by a digit.
Usage
Splitter.SplitTextByCharacterTransition({"A".."Z", "a".."z"}, {"0".."9"})("Abc123")
Output
{"Abc", "123"}