Regex Tester

Runs locally in your browser
All tool data is processed locally in your browser. It is never uploaded to HahaKit servers.

Enter JavaScript Regular Expressions, Marks and Text to Match.

Result

     

Loading the tool…

How to use Regex Tester

How do I use it?

  1. Enter JavaScript Regular Expressions, Marks and Text to Match.
  2. Run to see match locations and capture groups. Switch modes to preview replacements or explain the pattern.
  3. Time-consuming expressions can be cancelled and then continue to be tested.

How it works and examples

/(id)=(\d+)/g · id=12 id=34 → [id, 12], [id, 34]

Use the browser CMAScript regular. Position is UTF-16 index from 0; g means global, i ignore case, m change behavior at the end of the line.

Input limits

Search tools