All tools/Data Inspector

Regex Tester

Runs locally

Test regular expressions securely against strings using native browser APIs. Data never leaves your device.

/
/
Global
Don't return after first match
Case Insensitive
Case insensitive match
Multiline
^ and $ match start/end of line
Dot All
Dot matches newline
Test String
Match Results
5 matches
Match 1
Index: 0
Full Match
Hello
Capture Groups
#1
H
Match 2
Index: 6
Full Match
World
Capture Groups
#1
W
Match 3
Index: 13
Full Match
This
Capture Groups
#1
T
Match 4
Index: 23
Full Match
Regex
Capture Groups
#1
R
Match 5
Index: 29
Full Match
Tester
Capture Groups
#1
T

Test and debug regular expressions against your own text with live, highlighted matches. See capture groups, try flags, and refine your pattern until it's right — all in your browser. A fast way to build and verify regex without guessing.

How to test a regular expression

  1. 1Enter your regex pattern and choose flags (global, case-insensitive, multiline).
  2. 2Paste the text to test against — matches highlight as you type.
  3. 3Inspect capture groups and adjust the pattern until it matches correctly.

Build patterns with instant feedback

Regular expressions are powerful but easy to get subtly wrong. Testing a pattern against real sample text with live highlighting shows immediately what it matches and misses, including each capture group, so you can iterate to a correct pattern in seconds instead of debugging it in code.

Frequently asked questions

How do I test a regex pattern?
Enter your pattern and sample text above. Matches are highlighted live and capture groups are shown, so you can see exactly what the regex does.
Which regex flags are supported?
Common flags including global, case-insensitive, and multiline are available, matching JavaScript regular expression behavior.
Is my test text uploaded?
No. Matching runs entirely in your browser.