Regex Tester

Test regular expressions with live match highlighting.

Support
Works Offline
Privacy First
No Login
No API

Explanation

Plain-English breakdown of every token in the pattern

  1. (start of a capture group
  2. \w+matches any word character (letter, digit or underscore), repeated one or more times
  3. )end of the group
  4. @matches the literal text "@"
  5. (start of a capture group
  6. \w+matches any word character (letter, digit or underscore), repeated one or more times
  7. )end of the group
  8. \.matches the literal character "."
  9. commatches the literal text "com"
gglobal — find every match, not just the first

Common patterns

Click to load into the pattern field

Test string

Capped at 20,000 characters to avoid catastrophic backtracking.

Highlighted matches

Contact: ada@example.com, alan@test.com
Matches
2

Capture groups

#MatchIndexGroups
1ada@example.com9ada, example
2alan@test.com26alan, test

Replace preview

About the Regex Tester

Write and test regular expressions with live highlighted matches, a capture group table, a replace preview, and a cheatsheet of common patterns. Input length is capped to avoid catastrophic backtracking.

Examples

Email match

(\w+)@(\w+)\.com

Output

Matches ada@example.com

Keyboard shortcuts

  • Copy the main outputCtrl / ⌘ + Shift + C
  • Download the resultCtrl / ⌘ + S
  • Share this toolCtrl / ⌘ + Shift + S
  • Reset the inputsAlt + R
  • Open the tool search paletteCtrl / ⌘ + K

Related tools

Frequently asked questions

Read more

Version 1.0.0 · Updated 2026-08-06 · Runs entirely in your browser