# 自定义教育消息是否通过正则表达式触发？

**URL:** https://meta.discourse.org/t/custom-education-message-triggered-on-regex/255654
**Category:** Development
**Created:** [2023年二月20日 06:31 UTC](https://meta.discourse.org/t/custom-education-message-triggered-on-regex/255654 "2023-02-20T06:31:07Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![j127](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j127/32/79093_2.png) [@j127](https://meta.discourse.org/u/j127)
#### Post date: [2023年二月20日 06:31 UTC](https://meta.discourse.org/t/custom-education-message-triggered-on-regex/255654/1 "2023-02-20T06:31:07Z")

</div>

我想弄清楚如何添加一个自定义的教育消息，该消息在人们输入时由某些正则表达式触发。我以为我很久以前见过有关如何操作的信息，但我已经搜索了45分钟，却找不到。

是否有任何现有的插件或方法可以做到这一点？我问了 ChatGPT，它说要在插件中使用 `:before_create_post`，但我不确定它是否准确。 🙂
