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.
Explanation Progress
Pattern Explanation
Selected Source Span
Flag Effects
No flags. Case-sensitive matching and input-boundary anchors.
Select a token to highlight it. Offsets start at zero, and the end is exclusive.