What it does
Split text on a regex and see every item as the engine returns it, including empty items and captured separators.
How to use it
- Write the separator regex.
- Paste the text.
- Read the items; empty ones are marked, not hidden.
Verified example
Example
Text "alpha, beta,gamma"
\s*,\s* Result: ", ", ","
\s*,\s* Result: ", ", ","
\s*,\s* Result: ", ", ","
\s*,\s* Result: ", ", ","
Counterexample
Text "alpha beta"
\s*,\s* Result: no match
\s*,\s* Result: no match
\s*,\s* Result: no match
\s*,\s* Result: no match
Recorded by running fixture FX-R12 on : rp.js@1 on Node v24.21.0 (V8), v24.21.0, CPython 3.14.2 (Pyodide 314.0.7), PCRE2 10.48, go1.27.1. JavaScript results come from the rp.js@1 core on Node’s V8; your browser runs the same core.
Engines
- Engines differ in whether captured separators appear in the result and in how empty items at the edges are kept; each is shown as the engine returns it.
Limits
- The example below shows the separators the regex matches; the items are computed by the tool when you run it.
- A regex split is not a CSV parser: quoted commas are split too.