Regex Tester & Match Debugger
Test JavaScript regular expressions with live match highlighting, capture group extraction, replacement previews, and SRE log presets.
Turn verified regex rules into automatic trace scrubbing
Use AutoSRE's custom redaction rules to strip internal secrets from incoming OpenTelemetry traces before AI triage and sandbox reproduction.
How to use Regex Tester
- 1
Enter a regular expression pattern or pick a preset such as JWTs, API keys, IPv4s, or ISO timestamps.
- 2
Toggle flags (g, i, m, s, u) to match multiline logs or case-insensitive headers.
- 3
Inspect highlighted matches, character offsets, and numbered or named capture groups in the match table.
- 4
Optionally enable Substitution Mode to preview regex replacements before pasting patterns into redaction rules.
Regex Tester FAQ
Everything runs locally in your browser with zero telemetry upload. Inspect inputs, copy clean outputs, and review common edge cases below.
Related Free SRE Tools
Log PII Redactor
Scrub emails, IPv4 addresses, JWTs, API keys, database URLs, and credit cards from application logs directly in your browser.
JWT Decoder
Decode JSON Web Token headers and payloads locally, inspect standard claims, and check exp/nbf/iat expiration timestamps.
.env Validator
Compare .env files against .env.example to catch missing keys, empty values, duplicates, syntax errors, and accidental secret exposure.
Security Headers Generator
Build production-ready CSP, HSTS, X-Frame-Options, Referrer-Policy, and Permissions-Policy headers for Next.js, Nginx, and Express.