Skip to content

Regex tester

Type a pattern and some text to see every match highlighted, with capture groups and positions, as your browser’s engine evaluates it.

Runs in your browser. Everything happens in your browser. Nothing you enter is sent to NismaCloud.

//g
Flags

Uses your browser’s JavaScript regex engine, the same one your front-end code uses.

Results appear here.

How to use it

  1. 1

    Enter the pattern without the surrounding slashes.

  2. 2

    Toggle the flags you need: global, ignore case, multiline, dot-all, unicode.

  3. 3

    Paste sample text that includes cases that should and should not match.

  4. 4

    Check the highlighted matches and the groups below.

Safe testing

Some patterns, such as (a+)+ against a long string of a’s, take exponential time. The tester runs your pattern in a separate worker and stops it if it does not finish quickly, so the page never freezes. If that happens, your production code would hang on the same input.

Questions

Which regex flavour is this?

JavaScript (ECMAScript), using your browser’s engine, including lookbehind and named groups.

Why does my pattern match an empty string?

Quantifiers like * allow zero occurrences. Use + if at least one character is required.

Is my text uploaded?

No. Matching runs entirely in your browser.

Updated:

Build less boilerplate

NismaCloud handles hosting, SSL, forms, bookings and a store, so your time goes into what makes the site different.