Shipwright Studio · Lab

Regex Tester

Regex Tester is a free online tool that tests regular expressions live. Type a pattern and see every match highlighted in your test string, inspect capture groups match by match, and consult the built-in cheatsheet — all in the browser, nothing to install.

Pattern

g i m s u

Highlighted matches

Match details

Type a pattern to see matches listed here.

Cheatsheet

\d digit 0–9
\w word char
\s whitespace
. any char (exc. newline)
* 0 or more
+ 1 or more
? 0 or 1
{n,m} between n and m
[abc] char class
[^abc] negated class
(x) capture group
(?:x) non-capturing
(?<n>x) named group
x|y alternation
^ start of line/string
$ end of line/string
\b word boundary
(?=x) lookahead
Cheatsheet
\d digit
\w word char
\s whitespace
. any char
* 0 or more
+ 1 or more
? 0 or 1
{n,m} n to m
[abc] char class
(x) group
x|y alternation
^ $ anchors
\b word boundary
(?=x) lookahead
← Back to the idea bank