Regular expression tester with live matches

Type a pattern, pick flags and paste a test text. Matches are highlighted as you type and capture groups are listed.

  • Free, no sign-up
  • Your files and data stay on your device
  • No watermarks or limits

0 bytes uploaded. Everything happens in this tab.

How to use it

  1. Enter the regular expression and choose flags.
  2. Paste the text to test: matches are highlighted.
  3. Optionally enter a replacement such as $1-$2 and preview the result.

Example

Pattern \b\d{4}\b on "In 2024 and 2026":

Matches: 2024, 2026

About this tool

Regular expressions are powerful and unforgiving. A pattern that looks right can match too much or silently miss cases, and the quickest way to find out is to see the matches live against real sample text.

This tester uses the JavaScript regular expression engine of your browser, so the result is what your code would do in the browser or in Node.js. Capture groups, named groups and replacement tokens are shown,.

Test text may contain private data, so it stays on your device.

Frequently asked questions

Which regex flavour is used?

JavaScript (ECMAScript). Some features of PCRE or Python differ slightly.

What do the flags mean?

g finds all matches, i ignores case, m treats each line as a start and end, s lets the dot match line breaks, u enables Unicode.

Can I test replacements?

Yes, use $1, $2 and named groups in the replacement field.

Is my text uploaded?

No.

Often used next