← Vibe Tools

🔍 Regex Playground

//

Test string

Replace with ($1, $<name>)

Matches

Groups

Cheat sheet (click to insert)

Test JavaScript regular expressions live

Updated · Free · No sign-up · Runs in your browser

Regex Playground is a free online regex tester for JavaScript. Matches are highlighted as you type, capture and named groups are listed for each match, and a replace preview shows the output before you use it in code. It supports the g, i, m, s and u flags and includes a quick cheat sheet.

How to use Regex Playground

  1. Type your pattern and toggle the flags you need.
  2. Paste sample text and watch matches highlight in real time.
  3. Check groups and the replace preview, then copy the pattern into your code.

Frequently asked questions

Does Regex Playground support JavaScript named capture groups and replacement tokens?
Yes. Named capture groups such as (?<name>...) appear in the match details table and can be referenced in the Replace box via $<name> as well as numbered $1 groups.
Are my test strings private?
Yes. Regex evaluation runs locally using your browser's native RegExp engine; no pattern or test text ever leaves your device.

More free tools