RegEx Tester
Test JavaScript regular expressions locally, inspect matches and capture groups, and preview replacements.
Pattern and text
Private by design: your test data never leaves your device.
The tester uses native JavaScript/ECMAScript RegExp semantics. Other engines can behave differently.
A successful test does not prove a regular expression is fast for large or hostile inputs.
Matches
Enter a pattern and test text.
Test suite
Match/No-Match-Fälle lokal ausführen.
Good to know
Good to know
The regex tester checks regular expressions directly in your browser in three modes: match search, replace preview, and a test suite with multiple test cases. Execution runs in a worker with a configurable timeout, so a problematic pattern doesn't block the interface.
Typical searches include test regex, JavaScript regex tester, and pattern matching. The tester uses native JavaScript/ECMAScript RegExp semantics; other engines may behave differently. Important: a successful test does not prove that a regular expression stays fast for large or malicious inputs — the timeout only protects the interface, not production systems, against ReDoS.
Typical use cases
Pre-test replacement text with backreferences
Switch to replace mode to check a replacement pattern with JavaScript backreferences against real sample text before using it in code.
Validate a regex against multiple cases with a test suite
Add multiple positive and negative test cases in the test suite to ensure a pattern matches neither too broadly nor too narrowly.
Tips for better results
Don't mistake the timeout for ReDoS safety
A successful test in the tool doesn't prove the same pattern stays fast in production with large or malicious inputs — test performance separately.
Use literal import for copied code
Import a complete /pattern/flags literal from existing code, instead of manually separating pattern and flags.
How it works
How it works
Step by step
Features
Features
Three modes
Match search, replace preview, and a test suite with multiple test cases.
Worker with timeout
Execution runs in a worker with a limited runtime, so the interface stays responsive.
Local processing
Your test data never leaves your device; evaluation runs entirely in the browser.
Frequently asked questions
Frequently asked questions
Does the regex behave the same as in other languages?
Not necessarily. The tester uses native JavaScript/ECMAScript semantics; other regex engines can react differently to the same patterns.
Is my test data uploaded?
No. Evaluation runs entirely locally in the browser.
More tools
More tools
JSON Formatter
Validate, format, minify, analyze, and inspect JSON as a tree locally.
URL Decoder
Decode percent-encoded URL components, paths, query strings, and form data locally.
XPath Tester / Playground
Test XPath 1.0 in the browser and XPath 3.1 locally against XML or HTML documents.
JSONPath Query Evaluator
Run RFC 9535 JSONPath queries locally against JSON and show normalized paths.