Regex Tester

Test regular expressions with live match highlighting.

Pattern
//g
Test string0 matches

About this tool

Write a pattern, toggle flags, and see matches highlighted in your test string in real time. Capture groups and match indices are listed so you can debug complex expressions quickly.

How to use

  1. Enter a regular expression pattern and choose flags (g, i, m, s, u).
  2. Type or paste the text to test against.
  3. Matches are highlighted live and listed with their capture groups.

Examples

Pattern
(\w+)@(\w+\.\w+)
Test string
Contact ada@example.com or grace@dev.io

Frequently asked questions

JavaScript (ECMAScript) regular expressions, the same engine your browser uses.
g = global, i = ignore case, m = multiline, s = dotAll, u = unicode. Toggle any combination.
Contact

Let’s connect

Have a Liferay or Backend project you’d like to talk through? Fill in the form and I’ll get back to you.

Book Calendar