# Posts on-save processing with regex/replace configurable in admin panel

**URL:** <https://meta.discourse.org/t/posts-on-save-processing-with-regex-replace-configurable-in-admin-panel/37202>\
**Category:** Feature\
**Created:** [December 29, 2015, 12:30am UTC](https://meta.discourse.org/t/posts-on-save-processing-with-regex-replace-configurable-in-admin-panel/37202 "2015-12-29T00:30:05Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [December 29, 2015, 3:57am UTC](https://meta.discourse.org/t/posts-on-save-processing-with-regex-replace-configurable-in-admin-panel/37202/4 "2015-12-29T03:57:44Z")

</div>

> [@meglio](#):
>
> please clarify what you mean.

Something like the Pirate Speak plugin. eg.  
post text is passed into an anonymous function

```plaintext
Discourse.Dialect.postProcessText(function (text)

```

and a custom function “parses and manipulates” the text

> [@(Superseded) Plugin Tutorial #1 - How to manipulate the text in the composer?](https://meta.discourse.org/t/plugin-tutorial-1-how-to-manipulate-the-text-in-the-composer/10925):
>
> information_source This topic has been superseded by [Developing Discourse Plugins - Part 1 - Create a basic plugin](https://meta.discourse.org/t/developing-discourse-plugins-part-1-create-a-basic-plugin/30515) So, you want to manipulate the text in the composer but have no idea how? Let met guide you through the creation of a basic plugin that will turn the text into [Pirate Speak](http://en.wikipedia.org/wiki/International_Talk_Like_a_Pirate_Day). tada Update August 2018: you can create a complete discourse plugin skeleton in your plugins directory with [Rails plugin generator](https://meta.discourse.org/t/rails-plugin-generator/95907) tada First of all, you need to create a plugin.rb file that will b…

---

_[View the full topic](https://meta.discourse.org/t/posts-on-save-processing-with-regex-replace-configurable-in-admin-panel/37202)._
