How to automatically replace a double exclamation point when a message is saved?

I’m looking for a way to prevent double exclamation points when a user replies to messages.

In my particular case I have a super-user who has the bad habit (since 15 years) to conclude each sentence with !!

All older users know it is his way to write but new users often feel attacked by him (even if it is not his intention).
This sometimes generates bad responses from new users and I have to intervene to calm the situation.

Consider that I asked him several times to avoid !! at the end of a sentence, but his answer is that he does it unconsciously.

I know that I can use Replace a string in all posts to replace !! with a point, but this would only work on posts already published, not on those that will be published.

The only way I can think is to enter !! in watched words so that they are replaced by two black squares, but I find this method a little exaggerated.

Is there any other way?

IMHO the best way would be to write a plugin that would automatically replace [\s!]+$ by a single !.

Well, writing a plugin for a single user does not seem very useful, I thought of something less challenging, such as a js script or something like that… :sweat_smile:

There is a censored pattern site setting. You could replace his bangs with blocks. It would K silly, but no more silly than what he’s doing.

Or, you could have him pay to develop the plugin since he’s unwilling to reprogram himself.

After 15 years I think it has become a real mania or something that goes beyond his control.
He writes in this way not only on our forum, but everywhere, even on facebook and twitter.

BTW I think I will use the censored pattern you’ve suggested to me if there are no other alternatives.

I was kidding about how funding the plugin. If he cared, there are browser plugins that could catch that for him

이것은 감시 단어 → 대체 기능의 또 다른 용도입니다. @sam, 이 기능에 대해 깊은 회의적 입장을 보여왔다는 것을 알고 있지만, 실제로는 많은 목적을 수행합니다..

추가로, 트리머를 통과하는 기이한 이메일 서명을 제거하는 데 사용할 수도 있습니다.