Resources
Regex Tester
Write and test regex patterns with sample input, flags, matches, groups, and replace.
Regex Tester
JavaScript (ECMAScript) regular expressions.
Max processed: 100,000 characters. Matches capped at 1,000.
Use $1, $2…
for numbered groups, $&
full match, $<name>
for named groups.
replace output
—
flags: /g/ • matches: 1• time: 0 ms
highlight
matches & groups
#1 [0–0):
positional groups
- —
named groups
- —
matches (JSON)
[ { "match": "", "index": 0, "groups": {}, "captures": [] } ]