Regex String Splitter

Regex String Splitter

Local Processing

Split multiline text into an array of chunks using a regular expression pattern delimiter.

How It Works & Processing Standards

Split multiline text into an array of chunks using a regular expression pattern delimiter.

Tool processing runs in your browser. If you create a calculator or conversion share link, its values are included in the URL. See the privacy policy for account, analytics and advertising data.

Current Limits

  • Maximum input length: 100,000 characters

For tidying lists with inconsistent separators. A pattern like [,;]\s* splits on commas or semicolons and removes the following spaces too.

What You Can Do

Split by pattern
Whatever matches the pattern is a separator.
One per line
Pieces are shown line by line.

How to Use Regex String Splitter

  1. 1
    Enter a patternA regex describing the separator.
  2. 2
    Enter textPaste the text to split.
  3. 3
    CopyCopy the pieces.

Examples

Mixed commas and semicolons
Input: [,;]\s* / 사과, 배;포도, 감
Result: 사과 배 포도 감

Common Use Cases

  • Cleaning tag or keyword lists in mixed formats
  • Splitting log lines into fields

Frequently Asked Questions (FAQ)

What if the pattern has capturing groups?

Following JavaScript split rules, captured separators appear in the result. Use a non-capturing group (?:…) to leave them out.

Have feedback or ideas for this tool? Suggest & Inquire →