Regex Splitter
Split text at regex matches and optionally remove empty parts.
Processing locally…
Your input is processed locally in this browser tab.
How to use Regex Splitter
Enter the delimiter regex pattern (such as \s*[,;|]\s*) and optional flags.
Paste or open text to split and toggle Drop empty parts to omit blank elements.
Copy or export the split items, listed cleanly one per line.
Frequently asked questions
What happens if the pattern contains a capture group?
Just like JavaScript String.prototype.split, captured delimiter groups are preserved in the output sequence.
Can I keep empty trailing fields?
Uncheck Drop empty parts to preserve empty items produced by consecutive or edge delimiters.