Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
([a-zA-Z0-9_]{2,16}) issued server command: \/(w|tell|msg|message|whisper) ([a-zA-Z0-9_]{2,16}) ([^\n]+)
/
gm

Description

This regex lets you extract all the uses of the whisper command in Minecraft log files.

Submitted by anonymous - 4 months ago