🔍 RegexTester

Regex Tester

Test regular expressions instantly with live match highlighting

/ /
Flags:
Match Preview 0 matches
Enter a pattern and test string to see matches...

Match Details

No matches yet.

Common Patterns

Quick Reference

.Any character
*0 or more
+1 or more
?0 or 1
{n,m}Between n and m
^Start of line
$End of line
\dDigit [0-9]
\wWord char
\sWhitespace
\bWord boundary
[abc]Character class
(abc)Capture group
(?:abc)Non-capture group
a|bAlternation

Frequently Asked Questions

What is a regular expression?

A regular expression (regex) is a sequence of characters that defines a search pattern, commonly used for string matching, validation, and text manipulation in programming.

How do I use this regex tester?

Enter your regex pattern in the Pattern field (without slashes), select any flags you need, then type or paste your test string. Matches highlight automatically in real time.

What regex flags are supported?

g (global) finds all matches; i (case-insensitive) ignores case; m (multiline) makes ^ and $ match line starts/ends; s (dotAll) makes . match newlines; u (unicode) enables full Unicode support.

Can I copy matched text?

Yes! Click the Copy Matches button to copy all matched strings (one per line) to your clipboard.

Are capture groups supported?

Yes. Wrap part of your pattern in parentheses () to create a capture group. Group details appear in the Match Details section for each match.