About this tool
Simple splitting on one comma breaks down when the data mixes commas, semicolons and pipes or has uneven spacing. Here the separator is a regular expression, so a single pattern like \s*[,;|]\s* handles all of them, and you can trim pieces, drop empty ones or keep the separators. The result comes out one item per line or as a JSON array, and the text never leaves your device.
How to use Regex Splitter
- Enter the separator as a regular expression.
- Paste the text to split.
- Choose trimming, empty-piece and separator options.
- Copy the pieces as lines or as a JSON array.
Frequently asked questions
How do I split on any whitespace?
Use \s+ as the pattern. It treats spaces, tabs and line breaks, in any amount, as one separator.
How do I split before a character without removing it?
Use a lookahead such as (?=[A-Z]). It matches an empty position, so nothing is removed.