Paste text and a pattern for the separator, and get every piece on its own line. A regular expression lets you split on several separators at once, such as a comma, semicolon or pipe with any spaces around it, which a plain split cannot do. Trim spaces, drop empty pieces, keep the separators or stop after a number of pieces.
JavaScript syntax. You can also paste /pattern/flags.
Text inside ( ) in the pattern
6 pieces
Splitting runs in your browser. What you type never leaves this device.
Split on any JavaScript regular expression, such as \s*[,;|]\s* or \n{2,}
Trim spaces around each piece and drop empty ones
Keep the separators as separate items by wrapping them in ( )
Limit the number of pieces
Ignore case, multiline, dot-all and Unicode flags
A count of the pieces, and one-click copy
Turn "Mumbai, Pune; Nagpur | Nashik" into a clean one-per-line list for a spreadsheet, a dropdown or a bulk upload.
Split on blank lines (\n\s*\n) to get paragraphs, or on [.!?]\s+ to get rough sentences for review or translation.
Break log entries, SKUs like AB-12/CD-34 or tags written with mixed separators into their parts.
When the pattern has capture groups in brackets, tick "Keep captured separators" to include whatever they matched as their own items. For example ([+-]) on 1+2-3 gives 1, +, 2, -, 3. Use (?: ) for groups you do not want to keep.
Regex Match Extractor
Pull every regex match or capture group into a list, CSV or JSON
Regex Tester
Test regular expressions
Remove Duplicate Lines
Remove repeated lines from a list, with trim, ignore-case and sort options
CSV Editor
Edit CSV files like a spreadsheet: cells, sort, filter, remove duplicates, add or delete rows and columns
JSON Formatter
Format and validate JSON
JSON Sort Keys
Alphabetize JSON keys at every level
JSON Flatten
Nested JSON to dot-path keys
JSON Unflatten
Dot-path keys back to nested JSON
Built by Edesy
Edesy builds AI products for Indian businesses. Start self-serve, no demo call needed.
AI agents that answer and make phone calls 24/7. Handle appointments, inquiries and support in Indian and global languages.
₹50 free credit. No demo call needed.