Text & Docs

Regex Tester

Validate ECMAScript regular expressions, inspect matches and captures, and read the pattern as a railroad diagram.

regexpatterndiagram
About this tool

Text & Docs

regexpatterndiagram
Runs locallyMatches and railroad diagramCapture-aware output
Pattern Input

Enter the pattern without surrounding slash delimiters.

Supports ECMAScript flags such as g, i, m, s, u, v, y, and d.

Uses JavaScript replacement syntax like $1, $&, and $<name>.

Matches
Waiting
No pattern entered
Add a regular expression pattern or load the sample.