Skip to content
Toolbench

Regex tester

Test a regular expression against your text, with matches and capture groups highlighted live.

In your browser

/ /

Matches


        
    

Replace

Use $1, $2 for groups

        

About this tool

Write and debug regular expressions against sample text. Matches are highlighted as you type, capture groups are listed in a table, and you can preview replacements with $1 and $2.

How to use it

  1. 1 Type your regular expression and choose flags.
  2. 2 Paste test text.
  3. 3 Check the highlighted matches and groups.

Questions

Which regex flavour is used?

JavaScript (ECMAScript) regular expressions, the same as in browsers and Node.js.

Is my data uploaded?

No. This tool runs in your browser, so your text and files never reach our server.

Is this tool free?

Yes. It’s free to use with no sign-up and no limits for normal use.