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

Pattern library

Click any pattern to load it into the pattern field

Basics

Contact

Web

Dates & numbers

Dev & security

Logs & text

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

Export to code

Ready-to-paste snippet for the pattern, flags and replacement above

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

Comments

No login needed. Comments appear after a quick review.

Protected by an on-site captcha — no third-party trackers.

Optional: get an alert when your comment is published or replied to, plus new tool announcements. No sign-up.

Loading comments…

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