JavaScript regex tester and explainer

Regex Tester

Build and test JavaScript regular expressions with live highlighting, match details, replacement previews, examples, and a guided syntax explanation.

Developer tool

JavaScript Regex Workbench

Write, test, understand, and replace text with the JavaScript regular expression engine in your browser.

/gi
//

Valid JavaScript regular expression

2 matches
Contact dev@entwicklera.com or support@example.com for help.

Matches

2

Capture groups

0

Matched characters

38

Engine

JavaScript

Match 1

dev@entwicklera.com

Characters 8-27, line 1, column 9

Match 2

support@example.com

Characters 31-50, line 1, column 32

Built for the task

Format, validate, encode, decode, and test.

Fast browser utilities for common implementation, debugging, and content-cleanup tasks.

Toggle every JavaScript regex flag with a plain-language description
Highlight matches and inspect positions, numbered groups, and named groups
Preview JavaScript replacements with numbered and named references
Load practical examples and explain the current pattern token by token

FAQ

Regex Tester questions.

Which regex engine does this use?

It uses the native JavaScript RegExp engine built into your browser, so results match the behavior available in that browser.

Can I inspect numbered and named capture groups?

Yes. Each match shows its character range, line and column, numbered capture groups, and named capture groups.

Can I test regex replacements?

Yes. The Replace tab previews JavaScript replacement strings using tokens such as $&, $1, and $<name>.

How can I learn what a regex pattern means?

Open Explain & guide to read the current pattern from left to right, copy ready-to-use JavaScript, and consult the built-in syntax reference.

Custom software

Need a developer portal, dashboard, or internal tool?

Talk to Entwicklera