ToolPiq.

🔎 Regex Tester

Type a pattern and a test string to see every match highlighted as you type. Capture groups and named groups are listed per match, invalid patterns show the exact error, and nothing ever leaves your browser.

/ /
Regex cheatsheet
\dAny digit (0-9)
\wWord character (a-z, 0-9, _)
\sWhitespace
.End of string (or line with m)
^End of string (or line with m)
$End of string (or line with m)
[abc]Any one of a, b or c
[^abc]Anything except a, b or c
a*Zero or one a
a+Zero or one a
a?Zero or one a
a{2,4}Between 2 and 4 a
(…)Capture group
(?:…)Group without capturing
a|ba or b
\bWord boundary

🔒 Runs 100% in your browser. Your data never leaves your device.

How to use

  1. Type your regular expression in the pattern field — no slashes needed.
  2. Toggle the flags you need: g for all matches, i to ignore case, m for multiline.
  3. Paste your text below. Matches highlight as you type, and capture groups are listed underneath.

FAQ

Which regex flavour is used?

JavaScript (ECMAScript) regular expressions, exactly as your browser runs them. Lookbehind and named groups are supported in modern browsers.

Is my text sent anywhere?

No. The pattern and the test string are evaluated in your browser. Nothing is uploaded.

Why does my pattern show an error?

The exact error from the JavaScript engine is displayed — usually an unclosed group, an unescaped bracket, or an invalid flag.

Related tools