Regex Extraction Workbench
Test JavaScript regular expressions, inspect capture groups, and export matches as JSON or a spreadsheet-safe CSV.
Input
Output
How to use it
- Enter a JavaScript regular expression without slash delimiters and select flags.
- Paste representative text, then extract. Global matching is enabled so all matches are collected.
- Inspect matches, capture groups, named groups and indices. Download JSON or spreadsheet-safe CSV. No-match results are valid, not errors.
Supported formats & limits
Patterns are limited to 1,000 characters and results to 1,000 matches. Processing runs in a disposable worker with a three-second timeout and a cancel control. JavaScript regex is not PCRE, Python re or another engine. Offsets count UTF-16 code units. CSV cells that could start spreadsheet formulas are escaped.
Data handling
Input is processed in your browser, not uploaded or included in analytics events. Copying or downloading creates a separate copy. The site can load hosting analytics; it is not an offline application.
Common questions
Can a bad expression freeze the page?
Matching runs in a separate worker. The page terminates it after three seconds, and you can cancel it. Very large or complex patterns should still be simplified.
Why does a pattern work differently in another tool?
Regex dialects and flags differ. This tool uses your browser’s JavaScript regex engine; confirm compatibility with the actual automation runtime.