Regex Tester
Test regular expressions instantly with live match highlighting
Match Details
Common Patterns
Quick Reference
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.