Split String by Separator

Split String by Separator calculator can be used to divide a string into an array of substrings based on a specified separator.

Input Parameters

Calculation Results

Split String Results

Results will appear here after calculation.

Where:
- Input String is the string you want to split.
- Separator is the character or sequence of characters used to split the string.

Split String by Separator Calculator Usage Guide

Learn how to use the Split String by Separator calculator and its working principles

How to Use the Calculator

  1. Enter the Input String in the text area. This is the string you want to split.

  2. 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).

  3. Click the Calculate button to split the string based on the specified separator.

  4. The results will be displayed as a list of substrings that were created by splitting the original string.

Examples

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"