# Dynamic replace string to another

**URL:** https://meta.discourse.org/t/dynamic-replace-string-to-another/75957
**Category:** Feature
**Created:** [December 13, 2017, 12:45pm UTC](https://meta.discourse.org/t/dynamic-replace-string-to-another/75957 "2017-12-13T12:45:17Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jean-michel](https://avatars.discourse-cdn.com/v4/letter/j/3d9bf3/32.png) [@jean-michel](https://meta.discourse.org/u/jean-michel)
#### Post date: [December 13, 2017, 12:45pm UTC](https://meta.discourse.org/t/dynamic-replace-string-to-another/75957/1 "2017-12-13T12:45:17Z")

</div>

Hello

I just installed Discourse, and now it’s time to migrate from anciant forum.

Previous forum had feature I have to add to Discourse.  
Is it possible ? :

When a pattern of string is found into a message, string is dynamicly replaced with a link.  
I.e:  
“You can see on **page x** ” will be replaced by `"You can see on <A href="page.php?id=x">page x</a>"`  
A regex will do that. But where to place it ?

An idea ?  
Replace in tables with a batch is not a solution. It must be automaticly when displayed.

Sorry for my poor english…

Many thanks for help

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [December 13, 2017, 2:54pm UTC](https://meta.discourse.org/t/dynamic-replace-string-to-another/75957/2 "2017-12-13T14:54:53Z")

</div>

You can do this with a plugin.

---

<div class="post-metadata">

### Author: ![jean-michel](https://avatars.discourse-cdn.com/v4/letter/j/3d9bf3/32.png) [@jean-michel](https://meta.discourse.org/u/jean-michel)
#### Post date: [December 13, 2017, 3:10pm UTC](https://meta.discourse.org/t/dynamic-replace-string-to-another/75957/3 "2017-12-13T15:10:03Z")

</div>

I have not found the good keywords to find the plugin (poor english 😚 )  
Any idea about plugin name ?  
Many thanks

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [December 13, 2017, 3:51pm UTC](https://meta.discourse.org/t/dynamic-replace-string-to-another/75957/4 "2017-12-13T15:51:58Z")

</div>

[(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) is a good place to start.

[https://meta.discourse.org/t/doi-resolver-updated/38920](https://meta.discourse.org/t/doi-resolver-updated/38920) would be an excellent example of it weren’t broken.

If you have a budget you can post in #Marketplace.
