Regex Tester
Regex Tester tests JavaScript regular expressions against any input in real time. Type your pattern, pick the flags you need (g, i, m, s, u, v), and every match is highlighted instantly with colour-coded groups, named captures, and exact index positions. Use the Substitution tab to preview replace operations, the Code tab to export snippets for JavaScript, Python, PHP, or Go, and the Pattern Library to load 30 built-in example patterns.
Related: Text DiffFindInspectMarkdown Preview
Your files and inputs stay in your browser — nothing is uploaded or stored.
No matches found.
^Start of string / line (with m flag)$End of string / line (with m flag)\bWord boundary\BNon-word boundary\AStart of string (PCRE)\ZEnd of string (PCRE)