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

**URL:** <https://meta.discourse.org/t/how-to-automatically-replace-a-double-exclamation-point-when-a-message-is-saved/71759>\
**Category:** Product Support\
**Created:** [October 10, 2017, 11:47am UTC](https://meta.discourse.org/t/how-to-automatically-replace-a-double-exclamation-point-when-a-message-is-saved/71759 "2017-10-10T11:47:30Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [October 10, 2017, 12:30pm UTC](https://meta.discourse.org/t/how-to-automatically-replace-a-double-exclamation-point-when-a-message-is-saved/71759/2 "2017-10-10T12:30:55Z")

</div>

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

---

_[View the full topic](https://meta.discourse.org/t/how-to-automatically-replace-a-double-exclamation-point-when-a-message-is-saved/71759)._
