Regex Tester

Write the pattern.
Watch it match.

//g
Test text
0 matches
Contact us at hello@orrgo.com or support@example.org.
Call +91 98765 43210 before 2026-12-31.

Type a regular expression and toggle flags (g, i, m, s, u); matches highlight live in the test text and each match's capture groups are listed. Turn on Replace to preview a substitution using $1 or $<name>.

Regex cheat sheet

PatternMatches
\dA digit 0–9
\wA letter, digit or _
\sWhitespace
.Any character except newline
^ / $Start / end of line (with m flag)
a{2,4}2 to 4 a's
(…)Capture group
(?<name>…)Named group
(?=…)Lookahead
[^abc]Any character except a, b or c

Why it matters that this runs locally

Many online developer tools send what you paste to a server — risky when it contains API keys, session tokens, customer data or proprietary code. This tool runs entirely in your browser: open your browser's Network tab and you will see that nothing you type is sent anywhere.

Frequently asked questions

Which regex flavour is this?
JavaScript (ECMAScript) regular expressions, as used in browsers and Node.js — including named groups, lookbehind and Unicode property escapes like \p{L}.
What happens with a slow pattern?
Patterns run in a background worker that is stopped after 1.5 seconds, so catastrophic backtracking (like (a+)+$) shows a warning instead of freezing your browser.
Is my data sent to a server?
No. Everything runs in your browser, so tokens, keys, passwords and other sensitive data you paste never leave your device.