RegExp Tester
Build and test JavaScript regular expressions with live match highlighting, flags, captures, replacement and list tools, named tests, explanations, and a searchable reference. Save patterns locally or share a link.
How to use
- Enter a JavaScript expression and choose its flags.
- Edit the test text to see highlighted matches and captures.
- Use the result tools, named tests, and reference to refine the expression.
No uploads. No account. Processing stays in your browser.
Example input
09:41:02 INFO GET /api/products status=200 duration=18ms user=ada
09:41:05 WARN POST /api/orders status=429 duration=245ms user=grace
Health check: waiting for next request
09:41:09 ERROR DELETE /api/items/42 status=503 duration=1200ms
09:41:12 INFO GET /api/products?page=2 status=200 duration=21ms user=ada^(?<time>\d{2}:\d{2}:\d{2})\s+(?<level>INFO|WARN|ERROR)\s+(?<method>GET|POST|DELETE)\s+(?<path>/\S*)\s+status=(?<status>\d{3})\s+duration=(?<duration>\d+)ms(?:\s+user=(?<user>[\w.-]+))?$