Skip to content

Regex tester

Test JavaScript regular expressions live with match highlighting, capture groups, named groups and find-and-replace.

Flags
Enter a pattern and some text to see matches.
Enter a pattern and some text to see matches.

Features

How it works

  1. Type a JavaScript regular expression and toggle the flags you need — global, ignore-case, multiline, dotAll, unicode or sticky.
  2. Paste your test text below; matches are highlighted live and capture groups are listed.
  3. Add a replacement string to preview the substituted output, then copy the result.

Your files never leave this page

Every conversion runs entirely in your browser using WebAssembly. There is no upload, no server-side processing, no analytics, and no cookies. Open DevTools → Network during the operation and you will see zero outbound traffic.

Related tools

Topics covered