RegEx Tester

Test and debug regular expressions with live match highlighting, group capture, and replace preview. Everything runs in your browser.

//g
Flags:
 
Paste text to test against…

Test Regular Expressions Instantly

Regular expressions (regex) are powerful patterns for matching, searching, and replacing text. Zolkit's RegEx Tester evaluates your pattern against test input in real time using JavaScript's native RegExp engine, so what you test here behaves exactly as it would in your code.

Live Highlighting

Matches are highlighted in the test string as you type, with no delay.

Group Capture

View all captured groups from each match, numbered and colour-coded.

Flag Controls

Toggle global (g), case-insensitive (i), multiline (m), and dotAll (s) flags with one click.

Replace Preview

Enter a replacement string to preview the result of String.replace() or String.replaceAll() instantly.

100% Private

All matching runs locally in your browser. Nothing is sent to any server.

Free Forever

No account, no signup. Completely free to use.

How to Use the RegEx Tester

  1. 1

    Enter your regular expression pattern in the Pattern field and select any desired flags (g, i, m, s).

  2. 2

    Paste your test string into the Test String area. Matches will be highlighted immediately.

  3. 3

    To preview a substitution, enter a replacement string in the Replace With field and view the Result.

Frequently Asked Questions