Regex Tester

Workspace

Regex

Pattern

0 / 2,000
Flags

Matches

0 found
Matches appear here.

Replace

Replacement

Use $& for the full match, $1 for a group, or a named-group reference.

Details

Matches

0 found

Enter a pattern and sample text.

Help

Guide

How to use

  1. Enter a pattern, flags, and sample text.
  2. Review matches or test a replacement, then copy or download the result.
Help

FAQs

Which regex syntax is supported?

JavaScript regular-expression syntax and the available flags.

What does Global do?

It finds or replaces every non-overlapping match instead of only the first.