Regex Tester

New

Free online regex tester. Write a regular expression and test it against your text in real time. See all matches highlighted, capture groups, and match details. Supports flags: global, case-insensitive, multiline.

Pattern
//
Test String

Guide

How to Use

  1. 1

    Enter your regex pattern in the pattern field

  2. 2

    Paste your test string in the text area

  3. 3

    Toggle flags (g, i, m) as needed

  4. 4

    Matches are highlighted automatically

FAQ

Frequently Asked Questions

What regex flavor is used?

JavaScript's built-in RegExp, which is ECMAScript-compatible and works in all modern browsers.

Can I test capture groups?

Yes. Named and numbered capture groups are shown for each match in the match details.