Search DevTools

Jump to any tool or page

Regex Tester

Write a regular expression and watch it match, live. Groups, positions and flags included.

Pattern

/g
Flags
Samples

Test string

0 chars
0 matches

Matches

Write a pattern to see matches.

Reference

Character classes

.
any character except newline
\d
digit (0–9)
\w
word character (a–z, A–Z, 0–9, _)
\s
whitespace (space, tab, newline)
[abc]
any one of a, b or c
[^abc]
anything except a, b or c

Quantifiers

*
0 or more
+
1 or more
?
0 or 1
{3}
exactly 3
{2,}
2 or more
{1,4}
between 1 and 4

Anchors & boundaries

^
start of string (or line with m)
$
end of string (or line with m)
\b
word boundary
\B
not a word boundary

Groups

(abc)
capture group
(?:abc)
group without capturing
(?<name>abc)
named capture group
a|b
a or b
(?=abc)
followed by abc
(?!abc)
not followed by abc
Developer Utilities

About Regex Tester

Test regular expressions and preview matches in real-time. DevTools provides focused browser-based developer utilities so you can validate inputs, inspect payloads, copy results, and move between related utilities without installing local dependencies or configuring heavy toolchains.

Frequently asked questions

What is Regex Tester?
Regex Tester is a free online developer utilities tool. Test regular expressions and preview matches in real-time.
Is Regex Tester free to use?
Yes. Regex Tester is 100% free in your browser with no required sign-up, rate limits, or paywalls.
Who is Regex Tester useful for?
Regex Tester is built for developers, testers, technical writers, product engineers, students, and DevOps teams who need reliable, fast browser utilities for everyday development work.
Is data processed securely in the browser?
Yes. All core formatting, encoding, generation, and inspection operations happen locally in your browser client sandbox without sending confidential payloads to external servers.