Split String by Separator calculator can be used to divide a string into an array of substrings based on a specified separator.
Learn how to use the Split String by Separator calculator and its working principles
Enter the Input String in the text area. This is the string you want to split.
Specify the Separator in the input field. This can be a single character (e.g., ','
for comma), a space (' '
), or a sequence of characters (e.g., '; '
for semicolon followed by a space).
Click the Calculate button to split the string based on the specified separator.
The results will be displayed as a list of substrings that were created by splitting the original string.
Example 1:
Input String: "apple,banana,cherry"
Separator: ','
Result: "apple"
, "banana"
, "cherry"
Example 2:
Input String: "apple banana cherry"
Separator: ' '
(space)
Result: "apple"
, "banana"
, "cherry"
Example 3:
Input String: "apple;banana;cherry"
Separator: ';'
Result: "apple"
, "banana"
, "cherry"