Regex Tester

Test regular expressions against sample text with live matches.

Test JavaScript regular expressions against your sample text and see every match and capture group in real time. Toggle flags like global, case-insensitive, and multiline.

//g

Runs entirely in your browser — nothing is uploaded.

How to use the regex tester

  1. 1Enter your regular expression and choose flags.
  2. 2Paste the text to test against.
  3. 3See matches highlighted with capture groups listed.

Frequently asked questions

Which regex flavor is this?

JavaScript (ECMAScript) regular expressions — the same engine used in browsers and Node.js.

What do the flags mean?

g = global (all matches), i = case-insensitive, m = multiline, s = dotall, u = unicode, y = sticky.

Related tools