Developer

Regex Tester

Test regular expressions live against your text. See matches highlighted instantly with cheat sheet, common patterns, and group capture. Free online regex tester.

🔒 100% private. Regex testing runs locally in your browser (JavaScript flavor only).
Matches highlight live as you type.
.
Any character (except newline)
\d
Digit [0-9]
\D
Non-digit
\w
Word char [a-zA-Z0-9_]
\W
Non-word char
\s
Whitespace
\S
Non-whitespace
\b
Word boundary
^
Start of string/line
$
End of string/line
*
0 or more
+
1 or more
?
0 or 1
{n}
Exactly n times
{n,m}
Between n and m
[abc]
Character class
[^abc]
Negated class
(a|b)
Alternation
(...)
Capture group
(?:...)
Non-capture group
(?<name>...)
Named group
(?=...)
Positive lookahead
(?!...)
Negative lookahead
(?<=...)
Positive lookbehind
(?<!...)
Negative lookbehind
Developer / raw response

What is this tool?

Test regular expressions against sample text with highlighted matches.

How to Use

  1. Type your regex pattern in the pattern field.
  2. Set flags (global, case insensitive, multiline) as needed.
  3. Paste sample text in the test area.
  4. Review matches, capture groups, and replacement preview if available.

Frequently Asked Questions

Why no match?

Check escaping — dots match any character unless you use \.

Lookbehind support?

Depends on browser engine; test target environment separately.

Other tools

There are more calculators, converters and editors on Wivrix. If something is missing, tell us.