No Signup Required

Regex Tester

Write a regular expression and see every match highlighted as you type.

  • Runs in your browser — nothing uploaded
  • Instant, no waiting in a queue
  • Free, no watermark, no daily limits

Type a pattern and test string to see matches highlighted live, with capture groups and named groups listed for each match. Toggle the g, i, m, s, u and y flags, start from presets for emails, URLs, phone numbers, dates, hex colors and IPv4 addresses, and preview string.replace() output. Patterns run in an isolated worker, so a runaway pattern is stopped instead of freezing the page.

How to Test a Regular Expression

  1. 1

    Enter a pattern

    Type your regular expression or pick a preset, and toggle the flags you need.

  2. 2

    Add test text

    Paste the text to search. Matches are highlighted instantly and listed with their groups.

  3. 3

    Preview a replacement

    Turn on Replace to see the result of string.replace() with $1, $& or $<name> references.

Why use ToolzBank Regex Tester?

  • Live match highlighting
  • Capture groups and named groups
  • All JavaScript flags: g, i, m, s, u, y
  • Replace preview with $1, $& and $<name>
  • Presets for common patterns
  • Protection against catastrophic backtracking

Frequently asked questions

Which regex flavor does this use?
JavaScript (ECMAScript) regular expressions, exactly as your browser runs them — including lookbehind, named groups and Unicode property escapes in modern browsers.
Why is only one match highlighted?
Without the g (global) flag, a JavaScript regex stops at the first match. Turn on the g flag to find every match.
What happens if my regex is too slow?
Patterns run in a background worker with a 1.5-second limit. If a pattern takes longer — usually due to nested quantifiers like (a+)+ — it is stopped and you are warned instead of the tab freezing.
Is my text sent anywhere?
No. The tool runs entirely in your browser — nothing you paste is sent to a server.

More free developer tools