← All tools

DEVELOPER TOOL

Regex Tester

Test JavaScript regular expressions, inspect groups, and preview replacements.

Replacement
0 matches0 displayed

Enter a pattern and text to test.

Pattern testing uses your browser JavaScript RegExp engine. It is local and does not send text or patterns anywhere. Supported flags include d, g, i, m, s, u, v, and y where supported by the browser.

Results depend on the browser JavaScript engine and supported flags. Match display is limited to 500 results per test to keep very large inputs responsive.

Patterns and test text are processed locally in your browser and are not uploaded.

How to use Regex Tester

  1. Enter a JavaScript regular expression and optional flags.
  2. Paste the text to test and review all matches and capture groups.
  3. Enable replacement preview to test JavaScript replacement syntax.

Which regex engine is used?

The tool uses the JavaScript RegExp implementation built into your browser.

Can I inspect capturing groups?

Yes. Match details include numbered capture groups and named capture groups when present.

Are patterns uploaded?

No. Regex testing and replacement previews run locally in your browser.