Skip to content

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 - Whitespace

Quantifiers

* - 0 or more + - 1 or more ? - 0 or 1 {n} - Exactly n

Anchors

^ - Start $ - End \b - Word boundary

Groups

(...) - Capture (?:...) - Non-capture (?=...) - Lookahead

Test 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

  1. 1Enter your regular expression pattern
  2. 2Select flags: global (g), case-insensitive (i), multiline (m)
  3. 3Type or paste test text in the input area
  4. 4View highlighted matches and capture groups
  5. 5Test replacement patterns if needed

Frequently Asked Questions