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