Regex Tester
Live matching with highlights, capture groups and replace.
Free online regex tester by AIML Digital. It runs 100% in your browser: no sign-up, no limits, and nothing you enter is sent to a server.
Formula
Matches = input.matchAll(new RegExp(pattern, flags + "g"))
How it works
- Compile with the JavaScript (ECMAScript) regex engine.
- Highlight each match, list numbered and named capture groups, and preview replace() with $1, $<name> references.
Frequently asked questions
Is the Regex Tester free?
Yes. The Regex Tester by AIML Digital is completely free, with no sign-up, no limits and no watermark.
Is my data sent anywhere?
No. The Regex Tester runs entirely in your web browser using JavaScript. What you type stays on your device.
What formula does the Regex Tester use?
Matches = input.matchAll(new RegExp(pattern, flags + "g")).
How does the Regex Tester work?
Compile with the JavaScript (ECMAScript) regex engine. Highlight each match, list numbered and named capture groups, and preview replace() with $1, $<name> references.
Does the Regex Tester work on mobile?
Yes. It works in any modern browser on phone, tablet or desktop, and keeps working offline once loaded (except tools that load a helper library the first time).
More Developer tools
- Diff Checker — Compare two texts line by line and see every change.
- JWT Decoder — Decode header and claims, check expiry, verify HMAC signatures.
- Base64 Encode / Decode — Encode text to Base64 (UTF-8 safe) or decode it back.
- URL Encode / Decode — Percent-encode text or decode encoded URLs and params.
- HTML Entity Encode / Decode — Escape text as HTML entities, or turn entities back into characters.
- URL Parser — Break a URL into protocol, host, path and query parameters.
- Hash Generator — MD5, SHA-1, SHA-256, SHA-384, SHA-512 and HMAC for text.
- UUID Generator — Generate UUID v4 and time-ordered v7 identifiers in bulk.
- Timestamp Converter — Convert Unix time, ISO 8601 and time zones both ways.
- Number Base Converter — Convert between binary, octal, decimal, hex and any base 2–36.
- SQL Formatter — Indent and capitalize SQL for readability, or minify it.
- CSS Minifier & Beautifier — Compress CSS for production or expand it for editing.
- Cron Expression Explainer — Read cron schedules in plain English and preview next runs.
- HTTP Status Codes — Searchable reference of HTTP status codes with SEO notes.
- Chmod Calculator — Convert Unix permissions between checkboxes, octal and symbolic.