Instructions ยท Regex Pattern Explainer

  1. Open the HTML file in a modern browser. Review Security Check and select Continue.
  2. Paste a JavaScript pattern body or open a one-line UTF-8 text file. Select Open Sample to try a named capture.
  3. Enter JavaScript flags separately and select Explain Pattern. A local file open uses the current flags.
  4. Select a token to highlight its source. Read the flag effects and use Drag to Expand under the grid for more rows.
  5. 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.