Regex Tester

Real-time match highlighting · per-line pass/fail test suite · ReDoS vulnerability detection · 6-language code snippets

//
2 matches
Test strings
Preview
hello world
hello WORLD
foo bar 123
test@example.com
Code snippets
const regex = /hello/g;

// All matches (no groups):
const all = text.match(regex);

// With capture groups:
for (const m of text.matchAll(regex)) {
  console.log(m[0], m.groups);
}