Regex Explainer
Explain Regular Expressions in plain English.
Runs online in your browserNo installNo accountFree
Loading tool…
Explain Regular Expressions in plain English.
Runs online in your browserNo installNo accountFree
Type a regex pattern above to see the breakdown.
gGlobaloffFind all matches rather than stopping at the first one.
iCase-insensitiveoffLetters match regardless of upper or lower case.
mMultilineoff`^` and `$` match each line, not just the whole input.
sDotalloffThe `.` metacharacter matches newlines too.
uUnicodeoffTreat the pattern and input as Unicode code points.
yStickyoffMatch must begin exactly at `lastIndex`.
dIndicesoffExpose a `.indices` property on match results.
Add a pattern and some test text to see live matches.
Tip: ⌘↵ writes the pattern, flags, and test text into the URL hash so you can share the exact breakdown. Everything runs in your browser.