Test and debug regular expressions in real-time
Regular Expression
//g
Test String
Hello world! My email is test@example.com and my website is https://example.com
0 found
Enter a pattern to start matching
Quick Reference
Character Classes
. - Any character
\d - Digit [0-9]
\w - Word char
\s - WhitespaceQuantifiers
* - 0 or more
+ - 1 or more
? - 0 or 1
{n} - Exactly nAnchors
^ - Start
$ - End
\b - Word boundaryGroups
(...) - Capture
(?:...) - Non-capture
(?=...) - LookaheadTest and debug your regular expressions with real-time results. See matches highlighted, capture groups extracted, and test replacements instantly. Our regex tester includes a quick reference guide and common patterns to help you write better regex.
How to Use
- 1Enter your regular expression pattern
- 2Select flags: global (g), case-insensitive (i), multiline (m)
- 3Type or paste test text in the input area
- 4View highlighted matches and capture groups
- 5Test replacement patterns if needed