RegexCalc Regex Engine

Regex Tester

Type a regular expression and some text to see every match highlighted and each capture group extracted as you type, with the flags you choose. It runs on your browser's own JavaScript regex engine. Start from a recipe for email, URL, IPv4, semver or UUID.

Regular Expression JAVASCRIPT REGEX
/ / gm
Match Status
2 matches found
Pattern Valid
Recipes:
Test String
Extracted Matches

More from RegexCalc

Guides

All tools →All 13 guides →

Embed this tool on your site

Paste this where you want the tool to appear. It renders RegexCalc inside your own page — no ads in the embed, no input stored, and it links back to regexcalc.net so visitors can reach the full page.

Frequently Asked Questions

Is my pattern or test data sent to a server?

No. Matching runs in your browser using the JavaScript engine itself, so neither your pattern nor your test string is transmitted.

Why does my pattern work here but not in grep?

This tester uses the JavaScript regex dialect: no delimiters, ECMAScript syntax, and whichever of the g, i, m, s flags you tick. That means lookahead, named capture groups, and — on modern engines — lookbehind all work, but \A, \z, \h, possessive quantifiers, and atomic groups do not. grep -E uses POSIX ERE and grep -P uses PCRE, so the same pattern can behave differently in each.

What is catastrophic backtracking?

A pattern with nested quantifiers, such as (a+)+, can require exponential time against a non-matching input and freeze the page. The tester evaluates in your browser, so it can hang that tab rather than a server. Rewrite the pattern with atomic-style rewrites or character classes that cannot overlap.

🧭 Pro Tips & Gotchas

JavaScript is not your regex engine

Gotchas that bite in production

Developer Sponsor / Partner
Copied to clipboard!