Regex

Regex Split Tester

Split text with a JavaScript regex separator and inspect numbered parts, including captured separators, empty values and unmatched captures.

Keep this tool in your workbenchReport a problem

Loading JavaScript Regex controls…

What does this tool do?

Split text with a JavaScript regex separator and inspect numbered parts, including captured separators, empty values and unmatched captures. Code Station Regex tools use the JavaScript regular expression engine. Inputs: Regex Pattern, Test text, Flags. Outputs: Split parts, Part count.

How to use it?

Enter a JavaScript separator pattern and test text. Captured separators are included in JavaScript split results; g is not needed to split every separator. Choose “Split text”, then copy individual result values if needed. Clear removes all inputs and results and restores option defaults.