Skip to content

Regex Engineering Hub · free · no sign-up

Regex Split Tool

Split text into a list using a regular expression as the separator.

How it works Report a problem

Regex Text Splitter

Divide text into segments using complex regular expression delimiters

SPLIT PRO
Input String
Segments Found: 0

                

About the Regex Split Tool

Split text into a list using a regular expression as the separator.

How to use the Regex Split Tool

  1. Enter the Split Delimiter (Regex), such as \s*,\s*|\s*;\s*.
  2. Paste the text to split, or click Load Sample.
  3. Press Split Text, then Copy List.

Worked example

With the delimiter \s*[,;]\s*, the text a, b ;c splits into a, b and c.

Tips

  • Use | to split on several different separators.

Frequently asked questions

How is this different from a simple split?
A regex can match variable spacing and several different separators at once.