Live Regex Tester & Match Highlighter

Test JavaScript regular expressions against real copy, URLs, or logs with instant match count, index offsets, and capture groups.

2 match(es) found

/services/roofing-toronto
/services/plumbing-vancouver

Common questions

Which regex engine does this tester use?

It uses your browser's native ECMAScript RegExp engine with support for g, i, m, s, and u flags.

Why does the global (g) flag matter?

Without g, RegExp stops after the first match; adding g lists every occurrence in your sample text.