Local StudioDEVELOPER TOOLS Regex Pattern Explainer
100% Offline Download Tool Tools Catalog

Regex Pattern Explainer

Read a JavaScript regular expression part by part. Select an explanation to highlight its source and see how your flags affect it.

Pattern Source

Paste the pattern body without surrounding slashes or flag letters.

Flags and Explanation

Supported flags d g i m s u y.

Supported Syntax and Limits

ECMAScript 2024 pattern syntax with strict parsing. Covers groups, alternatives, repeats, classes, anchors, lookarounds and backreferences. Use u for Unicode property escapes.

Enter one pattern line up to 8,192 UTF-16 code units, with up to 64 nested groups. Unicode Sets (v), inline flag groups, and legacy Annex B extensions are outside this profile.

Instructions

  1. Paste a JavaScript pattern body or open a one-line UTF-8 text file. Select Open Sample to try a named capture.
  2. Enter JavaScript flags separately and select Explain Pattern. A local file open uses the current flags.
  3. Select a token to highlight its source. Read the flag effects and use Drag to Expand under the grid for more rows.
  4. Select Copy Full Explanation to copy the pattern, flags, spans and descriptions. Copy the selected text manually if browser clipboard access is unavailable.

One plain-text JavaScript pattern line up to 8,192 UTF-16 code units. Strict ECMAScript 2024 syntax with d, g, i, m, s, u and y flags.

Security Check

Regex Pattern Explainer

Read and explain JavaScript pattern syntax on this device.

  • Explain JavaScript PatternsRead groups, classes, repeats and assertions.
  • Link Meaning to SourceInspect each token’s exact offset.
  • Read Flags and Capture NamesSee how the pattern is structured.

Local Security Check

Checking This Tool

Checking the launch, browser policy, and resources.

    These checks cover this tool page. Website links open only when selected.

    File Access

    Reads the pattern you supply and explains its syntax on this device.