Regex Tester

Test regular expressions and highlight matches in real time.

Input data is processed in your browser
Data is never sent to a server

Tool

//

or drag & drop a file

What is a Regular Expression?

A regular expression (regex) is a notation for describing a set of strings using a single pattern. It enables concise expression of complex string searching, replacing, and validation operations.

How to Use

  1. Enter a regex pattern in the pattern field.
  2. Enter test text in the text area.
  3. Matches are highlighted in real time.
  4. Adjust flags (g, i, m) as needed.

FAQ

Which regex engine is used?

JavaScript's built-in regular expression engine.

Can capture groups be inspected?

Yes. Each matched group's content and index position are displayed.