Regex Tester

Test regular expressions live

FreeNo sign-upNothing uploaded
/ /

Field guide

About the Regex Tester

Build and debug regular expressions with instant feedback. Matches are highlighted in your test text as you type, so you can see straight away whether the pattern does what you expect.

  1. Enter your pattern and flags (for example g, i, m).
  2. Paste the text to test.
  3. See matches highlighted and listed below.
Questions

Frequently asked

Which regex flavour is used?

JavaScript (ECMAScript) regular expressions, the same engine your browser uses.

What do the flags mean?

g finds all matches, i ignores case, m makes ^ and $ match at line breaks, s lets . match newlines, and u enables full Unicode.

Why does my pattern match nothing?

Check escaping. In a regex, characters like . * + ? ( ) [ ] need a backslash to match literally.

Is what I type sent to a server?

No. The tool runs entirely in your browser and there's no server behind it, so what you type never leaves your device and nothing is stored. You can check: it keeps working if you go offline after the page has loaded.