Je n'arrive pas à comprendre comment remplacer les Mots Regardés

Previously we were using the Auto-Linkify theme component, but now unable to do that as we discontinue use of it.

So now we’re trying to work with the built-in Watched Words feature, and doing a Replace with RegEx.

We’re using Height for our tickets, which are all numbered like T-123 and then the URL just uses that T-123 behind a / to create the link.

The expression (T\-\d*) can successful capture the T-123 example, but I can’t get the $1 to be replaced by it. Ideally it would produce a link that’s like [T-123](https://xmtp.height.app/T-123). How do I go about this?

This is what I had entered into Watched Words, though I recognize that it wouldn’t actually do the same as before (auto linkify).
CleanShot 2021-10-14 at 16.25.47@2x

2 « J'aime »

Je ne savais pas que la capture et le remplacement regex étaient pris en charge dans les Mots surveillés, seulement la correspondance, pas la capture et le remplacement.

2 « J'aime »

Compris ! Et oui, c’est dommage. J’espérais pouvoir obtenir les mêmes fonctionnalités que j’avais dans Auto-linkify avec les fonctionnalités intégrées, car c’est tout ce qui était disponible dans Discourse for Teams.

J’aimerais toujours voir cette fonctionnalité un jour !

3 « J'aime »