Formatters & Code
Regex Tester
Test regex, inspect matches and groups, and replace or extract text. Save patterns, compare engines and process files privately in your browser.
What the result means
Write a pattern, add test text, and inspect the highlighted matches and captured values. Switch the operation to replace, extract or split text. Test cases let you check expected results, while Saved work keeps patterns ready to reuse. Builders, file processing and engine comparisons have their own panels below. Stop test keeps your inputs, while Clear workspace removes the current inputs and saved draft. Named library entries remain available. Your work stays in this browser; downloaded files include your test text.
Related tools
Guides
Questions
Which regex engine is used?
Choose JavaScript, PCRE2, Python, Rust, Go, .NET or Java to match your application. Syntax, flags and replacement rules vary by engine. Java loads its runtime from the CheerpJ CDN; other runtime files load from PageUtil. Matching runs in your browser.
Does my test text leave my device?
Patterns and test strings are processed locally. Drafts are saved in browser storage on this device. Clear workspace removes that saved workspace. JSON downloads contain your test texts, so inspect them before sharing.
Can a slow regex freeze the page?
Use Stop test to end a running test while keeping your inputs. Tests also stop when you edit or when the time limit is reached. A stopped test is not a no-match result.