Sign in

File tools that never upload your files

Regex tester

Write a regular expression and see at once what it matches in your test text: each match highlighted, with its position and captured groups. Testing runs in your browser, so your text never leaves your device.

5 free data and file results; text tools such as the JSON formatter never count. Paid plans have no usage limits.

How it works

  1. 1

    Write the pattern

    Type the regular expression and its flags, such as g, i or m.

  2. 2

    Paste test text

    Up to 100,000 characters.

  3. 3

    Read the matches

    Matches are highlighted and listed with position and groups.

Why work without uploading

JavaScript syntax

The same engine your browser and Node.js use, including named groups and lookbehind.

Never freezes

Tests run in the background and stop after one second, so a runaway pattern cannot hang the page.

Private

Logs and data you test against stay on your device.

Good to know

The flags d, g, i, m, s, u and y are supported. Each match is listed with its index in the text and the content of every capture group, which makes it easy to check what a replacement with $1 or a named group would produce.

Some patterns take exponential time on certain inputs (catastrophic backtracking). The tester runs each test off the main page and gives up after a second, telling you the pattern is too slow — a useful warning before such a pattern reaches production.

Patterns up to 1000 characters are accepted. Other regex flavours (PCRE, Python, .NET) differ in details; test there too if your code uses them.

Questions and answers

Which regex flavour is used?

JavaScript (ECMAScript), as in browsers and Node.js.

What if my pattern is very slow?

The test stops after one second and says so.

Is my text uploaded?

No. It is tested in your browser.