How the Regex Tester Works
AnyTool tests regular expressions using the browser's native JavaScript RegExp engine, so matching, flags (g/i/m/s/u/y/d), and capture groups behave exactly as in ECMAScript. The pattern is parsed into an abstract syntax tree to generate a plain-English explanation and color-code tokens, while the d (hasIndices) flag drives precise match and group highlighting. All matching runs client-side — patterns and test text are never uploaded.
- Native RegExp matching — JavaScript/ECMAScript flavor
- Live highlighting of matches and color-coded capture groups
- AST-driven plain-English explanation of the pattern
- Replace/split modes and a common-pattern library
- No upload, no signup; works offline
