Idiom # 259: Split on several separators
See programming-idioms.org:
Code
Running Example
Using string manipulation
Alternative, more elegant, approach using String.fields_func
Note that this treats multiple neighboring seperators as one, so no empty strings are added in that case.
last changed: 2025-05-13