StringSplit¶
With a list of delimiters, leading and trailing empty pieces are dropped:
An explicit maximum keeps empty pieces and the original remainder:
A rule keeps the delimiters between the pieces, and a named pattern binds the matched text:
Each rule in a list gets its own replacement; a bare delimiter inserts nothing: