Skip to content

Regex Tester

Test regular expressions for chat filters, command aliases and log parsing, with live matches and capture groups.

Presets

Pattern

Test text

Replace with

Use $1 for a numbered group, $<name> for a named one, $& for the whole match.

Matches

3 matches
/warp spawn
/home base
/warp
/tp Steve
/home mine_2

Match details

  1. /warp spawn#1 · index 0
    $1
    warp
    $2
    spawn
  2. /home base#2 · index 12
    $1
    home
    $2
    base
  3. /home mine_2#3 · index 39
    $1
    home
    $2
    mine_2
Replacement preview
/essentials:warp spawn
/essentials:home base
/warp
/tp Steve
/essentials:home mine_2

Where server owners use regex

Chat filter plugins, command alias and auto-mod rules, Discord bots and log search tools all accept regular expressions. Test them here first, against real lines from your chat or logs, before they go live.

Java and JavaScript regex

This page uses your browser’s JavaScript engine. Most plugins run on Java, whose regex syntax is very close but not identical. For example, Java supports possessive quantifiers like a++ and JavaScript doesn’t, and lookbehind support differs. Simple patterns behave the same in both.

In YAML configs, backslashes inside double-quoted strings must be doubled ("\\d+"), or use single quotes ('\d+').

ZCraft Studios

Ready-made configs for your plugins

Configs for popular plugins, with setup docs, changelogs and support on Discord.