Split text wherever a regular-expression separator matches.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
The expression is applied as a separator and text between matches becomes fields; capturing groups can be inserted into the result. A limit stops collection after the requested number of entries.
John, 30, New York, Engineer
[0]: John [1]: 30 [2]: New York [3]: Engineer
Log tokenization, punctuation splitting, and CSV-like preprocessing use regex separators.