</>Code Editor

Free · in your browser · no sign-up

Regex tester: live matches as you type

Write a regular expression, paste the text it should match, and watch every match light up as you edit the pattern. Capture groups are listed under the text, flags are a click away, and the whole thing runs in your browser inside the code editor, so you can test a pattern against the real file it will run on.

What you get

  • Matches highlighted live

    Every match is marked in the sample text while you type, so a greedy quantifier or a missing anchor shows up immediately.

  • Capture groups broken out

    Each match lists its numbered and named groups, which is the quickest way to check a lookahead or an alternation does what you meant.

  • Flags, one click each

    Toggle global, case-insensitive, multiline, dot-all, unicode and sticky and see the result change.

  • Test against real files

    The playground lives beside the editor's tabs: open the log, CSV or source file the pattern is for and test against it, not a toy snippet.

How it works

  1. 1

    Open the editor; the regex playground opens in the side panel.

  2. 2

    Type the pattern and pick flags; paste or type the sample text.

  3. 3

    Read the highlighted matches and the group table, then copy the pattern into your code.

Questions

Which regex flavour does it use?

JavaScript (ECMAScript) regular expressions, as run by your browser's engine: lookbehind, named groups, unicode property escapes and the sticky and dot-all flags all work in current browsers.

Is my text uploaded?

No. Matching runs in your browser; the pattern and the sample text never leave the page.

Does it work for Python, Java or .NET patterns?

Most patterns are shared across flavours, but lookbehind rules, possessive quantifiers and some escapes differ. Test the common part here and check flavour-specific syntax in the target language.

Is there a regex cheat sheet?

Yes, with examples you can paste into the tester: the regex cheat sheet on the blog.

More tools in the editor