Tools/Regex Tester
Text & String Tools

Regex Tester

Write a regular expression and see every match, capture group, and flag behavior update live as you type.

Free & unlimitedRuns in your browserNo sign-up required
Loading tool…
How it works

Three steps, no setup

1

Write your pattern

Enter a regular expression and choose which flags to apply.

2

Paste test text

Matches are highlighted directly in the text as you edit either field.

3

Inspect capture groups

Each group is listed separately with its matched value.

Common questions

Frequently asked questions

Which regex flavor does this use?
It runs on native JavaScript regular expressions, so patterns behave exactly as they would in browser or Node.js code.
Why is my match not highlighting?
Check that the global flag is enabled if you expect multiple matches — without it, only the first match is returned.
Chat with us
Usually replies in minutes