chatflow用正規表現

条件甘め

%appdata%/.minecraft/logs/latest.log 参照

---

name: delete
mat : ^(?:~\w)*(?:\[Announcer\].*|Auto(?:Save?|Backup)(?:ing| Complete)?|You have no new mail.)$
rep : <なし>
type: chat

---

name: [shop]
mat : ^~a\[Shop\] ~r(.+)$
rep : ~l[Shop] $1
type: notif

---

name: [fly]
mat : ^~\wSet fly mode(?:~\w)+ enabled (?:~\w)+for (\w+)(?:~\w)+\.$
rep : ~lSet fly mode enabled for $1.
type: notif

---

name: [lift]
mat : ^(Can't leave elevator in use)$
rep : ~l$1
type: notif

---

name: [LWC] notice
mat : ^(?:~\w)+Notice: (?:~\w)+That (?:~\w)+(\w{5})\w*(?:( \w{5})\w*)?(?:( \w{5})\w*)?(?:( \w{5})[\w ]*)?(?:~\w)+ is locked by(?:(?:~\w)+ (\w+)(?:( \(\w{8}-)\w{4}-\w{4}-\w{4}-\w{12}(\)))?|(you))\.$
rep : [LWC] That ~e~l$1$2$3$4~r is locked by ~e~l$5~r$6$7$8.
type: chat

---

name: [HE]
mat : ^~c(Searching for matching results\.\.\.|No results found)$
rep : ~e~l$1
type: chat

---

name: [eco]
mat : ^((?:~\w)+\[(?:~\w)+Economy(?:~\w)+\](?:~\w)+ )(.*?)$
rep : $1~e$2
type: chat

---

name: [japanize]
mat : ^((?:~\w)*\[[^\]]+\](?:~\w)*(?:<[^>]+>)?) ((?!http)[ -'*-~]*?(?!http)[ -'*-~]+) ~r~6\(([^()]+)\)$
rep : $1~r $3 ~6((~7$2~r~6))
type: chat

---

name: [WG] message
mat : ^((?:~\w)*(?:Hey!(?:~\w)*[\w',\s]+\.|(?:\[WG\]|ゲート案内)\s*(?:~\w)*.*))$
rep : $1
type: notif

---

name: [LWC]
mat : ^((?:~\w)+[\w\s,]*(?: [Pp]rotection |(?: |un)registered[ .!]| lock(?: |ed)| persist\.)[\w\s,.!]*)$
rep : ~e~l$1
type: notif

---

name: [AFK]
mat : ^(?:~\w)*\* ([!-~]+)(?:~\w+| )+is (no )?(now|longer) AFK\.$
rep : ~7[AFK] ~e~l$1~7 is ~e~l$2~7$3 AFK.
type: chat

---

name: [lclog]
mat : ^(?:~\w)+\| (?:~\w)+201\d-\d\d-\d\d \d\d:(?!00)\d\d:\d\d(?:~\w)+, .*?$
rep : <なし>
type: chat

---