Regex Tester

Test and debug JavaScript regular expressions with real-time matching and highlighting. See all matches, groups, and positions instantly.

/ /

Highlighted Matches

Common Patterns

How to Use the Regex Tester

  1. Enter your pattern — Type a regular expression in the pattern field.
  2. Set flags — Choose flags like g (global), i (case-insensitive), m (multiline).
  3. Add test text — Paste the text you want to match against.
  4. See matches — Matches are highlighted in real time with capture group details.

Regular expressions (regex) are powerful patterns for searching, matching, and manipulating text. This tool uses JavaScript's built-in regex engine. Try the preset patterns to learn common regex patterns for emails, URLs, phone numbers, and more.