Split string by separator calculator can be used to divide a string into an array of substrings based on a specified delimiter or regular expression.
Learn how to use the Split string by separator calculator and its working principles
If you need to split by multiple separators, enter them separated by commas in the separator field. For example, to split by comma or semicolon, enter ",;". The calculator will then use a regular expression to match any of these separators.
Input: "apple,banana,cherry"
Separator: ", "
Result: ["apple", "banana", "cherry"]
Input: "hello world from calculator"
Separator: " "
Result: ["hello", "world", "from", "calculator"]
Input: "key1:val1|key2:val2;key3:val3"
Separator: ":|;"
Result: ["key1", "val1", "key2", "val2", "key3", "val3"]