Back to tools

Regex Tester

Write a pattern, watch it match your text as you type, and see exactly what every token does. Capture groups, a replace preview, and a portability check for PCRE and Python.

Pattern

Your regular expression

Write the pattern body only — no surrounding slashes. Everything updates as you type.

Flags

Changes the portability check only — matching always runs on your browser's JavaScript engine.

Presets

Test text

Text to match against

Paste real data — a log line, a config, a chat export. Nothing leaves your browser.

794 characters · 14 lines

Highlighted text
Wespner ops log — node eu-fra-03
Ticket #4821 opened by [email protected], escalated to [email protected].
Billing contact: [email protected] (invoice WX-2026-0917).
Panel: https://panel.wespner.eu/server/eu-fra-03/console
Mirror: http://mirror.wespner.eu:8080/backups/latest.tar.zst
Node IP 185.199.110.153, gateway 10.0.0.1, bad entry 999.1.1.1 in the allowlist.
Server UUID 9f2c1a7e-3b44-4d8e-9c21-7a5f0b6e2d13 (instance 550e8400-e29b-41d4-a716-446655440000).

Chat export:
[12:04] Steve_84: this build is hell to maintain, honestly
[12:05] Alex_MC: rotate the panel password and open a shell on the class-4 node
[12:06] Steve_84: damn, the ass-end of that config is unreadable
[12:07] Notch_Fan: <img src=x onerror=alert(1)> nice try
[12:08] Alex_MC: harassment report filed, see /docs/rcon

Capture groups

Every match, with its groups and positions

Numbered groups come from plain ( ). Named groups come from (?<name>…) and are listed separately.

Enter a pattern to see matches and their capture groups.

Running your own game server?

Wespner game servers with DDoS protection, NVMe drives and activation within minutes.

Browse hosting