JavaScript's native RegExp engine. Most syntax is shared with PCRE (PHP, Python), but always verify critical patterns in your deployment language.
Test regular expressions live against your text — matches highlight
instantly, capture groups break out into a table, and a replace mode
previews substitutions with $1-style references.
Type your regex and toggle flags (g, i, m, s, u, y).
Matches highlight instantly as you type either field.
See every match, its index, and capture groups in a table.
Switch to Replace mode to preview substitutions live.
$1, $2 etc. to reference capture groups, or
$<name> for named groups.
| Syntax | Meaning | Category |
|---|
JavaScript's native RegExp engine. Most syntax is shared with PCRE (PHP, Python), but always verify critical patterns in your deployment language.
Greedy (* or +) matches as much as possible. Lazy (*? or +?) matches as little as possible — important when matching between delimiters to avoid overshooting.