All Dev Tools
Ambiakshi ToolsRuns 100% on this deviceDevelopersRegexTextProcessing

Test and explain regular expressions

Test regular expressions live, view numbered and named capture groups, inspect plain-English token breakdowns, and run replacements.

Runs 100% in your browser. Nothing you enter or upload ever leaves this device. How this works →

Runs 100% on this deviceECMAScript RegExp
Presets:
Regular Expression Pattern
//g
Flags:
Test String
65 characters
2 matches·2 recorded
Match #1indices: [16 - 28]
800-555-0199
Capture Groups (3):
$1 (area)[16:19]
800
$2 (prefix)[16:19]
555
$3 (line)[16:20]
0199
Match #2indices: [52 - 64]
415-555-2671
Capture Groups (3):
$1 (area)[52:55]
415
$2 (prefix)[52:55]
555
$3 (line)[52:56]
2671

Developer utility

100% in-browser

Developer utilities run client-side in the browser or via ephemeral user-initiated requests. Secrets and code you input are never persisted on our servers. Treat results as technical references and second opinions.

Standard: Configurations, schemas, and diagnostics should be tested against your specific deployment environment.

Frequently asked

Direct answers for search, answer engines, and generative crawlers.

Numbered capture groups use parentheses (...) and are accessed by their 1-based numerical index ($1, $2). Named capture groups use (?<name>...) syntax and assign a human-readable identifier to the match. Named groups make complex regex patterns significantly more readable, maintainable, and self-documenting.

Feedback, bugs & custom requests

Found a bug, a math anomaly, or a missing feature on Test and explain regular expressions? Send it to engineering — reports land in our Discord channel. Optional email if you want a follow-up.

Related tools

Canonical: /developer/regex-workbench. Estimates and conversions are educational. See the full disclaimer.