MyToolsKart

Regex Tester

Build a regular expression and test it against sample text — see live matches, capture groups and replacements, right in your browser.

Test string

2 matches for /\b(\w+)@(\w+)\.\w+\b/g

#1 @ 14hello@mytoolskart.com · groups: hello, mytoolskart
#2 @ 39sales@example.org · groups: sales, example

Test regular expressions instantly

A regular expression (regex) is a compact pattern for finding and extracting text — email addresses, dates, IDs, log lines and more. Getting a pattern exactly right is fiddly, so this tester gives you instant feedback: type a pattern, toggle flags, and every match and capture group is shown as you go.

How to use it

  1. Enter your pattern (no surrounding slashes).
  2. Toggle the flags you need — global, ignore-case and so on.
  3. Paste your test string and read the match list below.
  4. Optionally add a replacement using $1, $2 to preview substitutions.

Frequently asked questions

Which regex flavour does this use? It uses your browser’s native JavaScript (ECMAScript) regular-expression engine, so behaviour matches what you get in JS code.

What do the flags mean? g finds all matches, i ignores case, m makes ^ and $ match line boundaries, s lets the dot match newlines, and u enables full Unicode.

Can I test replacements? Yes — enter a replacement string using $1, $2 for capture groups and the result updates live.

Is my text private? Completely — matching happens in your browser and nothing is uploaded.