Regex splitter
Split text into pieces wherever a regular expression matches, one piece per line.
Missing a feature or found a bug in Regex splitter? Tell me on X (@_andrewtran) or by email.
How to use Regex splitter
- Type the pattern to split on, such as a comma followed by spaces.
- Paste the text to split.
- Copy the pieces from the output pane.
Questions and answers
Is my data sent anywhere?
No. Everything runs in your browser on this device. Nothing you paste is uploaded or stored.
Are empty pieces kept?
No. When two matches sit side by side, the empty piece between them is dropped.
Where are the other options?
This page opens Regex match extractor with one choice already made. Every option of that tool is still here, and its own page says more about it.
Related tools
Regex match extractor
Pull every regex match or capture group out of a text into a list, or split text on a pattern.Nano ID generator
Generate short, URL-safe random IDs of any length, with a choice of character sets.Secret key generator
Generate 128 to 512-bit random secret keys as hex, Base64 and Base64URL.YAML formatter
Format and validate YAML with even indentation, and see the line of any error.