Skip to content
Frisbly
Sign in

Regex tester

Test a JavaScript regular expression in your browser: see matches highlighted and capture groups in a table.

Flags: g i m s u y d (v where this browser supports it). Each letter once.

Enter a pattern to see the matches.

The pattern and text are tested in this browser tab only. They are not sent or saved.

The pattern and text you type never leave this device.

How to use it

  1. 1

    Type the pattern

    Write the pattern in the pattern box without the slashes. Pattern: a JavaScript regular expression. Other flavors, such as PCRE or Python, can behave differently.

  2. 2

    Set the flags

    Enter flag letters such as g, i, m, s, u, or y in the flags box.

  3. 3

    Paste the text

    Put the text to search in the text box. Matches are highlighted as soon as you change the pattern, flags, or text.

  4. 4

    Read the groups

    The group table lists each match with its numbered and named capture groups, so you can check what each part caught.

Cookie choices

We use essential local storage for your choices. Optional anonymous analytics help us understand aggregate usage and improve reliability. Privacy Policy