forked from blizzthewolf/SeaCogs
66 lines
1.1 KiB
Markdown
66 lines
1.1 KiB
Markdown
|
# Regex Examples
|
||
|
|
||
|
## 1.20.4 - Paper (Default)
|
||
|
|
||
|
### Achievements
|
||
|
|
||
|
```re
|
||
|
^\[\d{2}:\d{2}:\d{2} INFO\]: (.*) has (made the advancement|completed the challenge) \[(.*)\]$
|
||
|
```
|
||
|
|
||
|
### Chat
|
||
|
|
||
|
```re
|
||
|
\[\d{2}:\d{2}:\d{2}\sINFO\]: <(\w+)>\s(.*)
|
||
|
```
|
||
|
|
||
|
### Join
|
||
|
|
||
|
```re
|
||
|
^\[\d{2}:\d{2}:\d{2} INFO\]: ([^<\n]+) joined the game$
|
||
|
```
|
||
|
|
||
|
### Leave
|
||
|
|
||
|
```re
|
||
|
^\[\d{2}:\d{2}:\d{2} INFO\]: ([^<\n]+) left the game$
|
||
|
```
|
||
|
|
||
|
### Server
|
||
|
|
||
|
```re
|
||
|
^\[\d{2}:\d{2}:\d{2} INFO\]:(?: \[Not Secure\])? \[(?:Server|Rcon)\] (.*)
|
||
|
```
|
||
|
|
||
|
## 1.20.1 - Forge
|
||
|
|
||
|
### Achievements
|
||
|
|
||
|
```re
|
||
|
^\[\d{2}:\d{2}:\d{2}\] \[Server thread\/INFO\] \[minecraft\/MinecraftServer\]: (.*) has (made the advancement|completed the challenge) \[(.*)\]$
|
||
|
```
|
||
|
|
||
|
### Chat
|
||
|
|
||
|
```re
|
||
|
^\[\d{2}:\d{2}:\d{2}\] \[Server thread\/INFO\] \[minecraft\/MinecraftServer\]: <(\w+)>\s(.*)
|
||
|
```
|
||
|
|
||
|
### Join
|
||
|
|
||
|
```re
|
||
|
^\[\d{2}:\d{2}:\d{2}\] \[Server thread\/INFO\] \[minecraft\/MinecraftServer\]: ([^<\n]+) joined the game$
|
||
|
```
|
||
|
|
||
|
### Leave
|
||
|
|
||
|
```re
|
||
|
^\[\d{2}:\d{2}:\d{2}\] \[Server thread\/INFO\] \[minecraft\/MinecraftServer\]: ([^<\n]+) left the game$
|
||
|
```
|
||
|
|
||
|
### Server
|
||
|
|
||
|
```re
|
||
|
^\[\d{2}:\d{2}:\d{2}\] \[Server thread\/INFO\] \[minecraft\/MinecraftServer\]: \[(?:Server|Rcon)\] (.*)
|
||
|
```
|