This repository has been archived on 2021-05-20. You can view files and clone it, but cannot push or open issues or pull requests.
blog/content/blog/text-substitution-in-discor...

34 lines
721 B
Markdown

+++
title = "Text Substitution in Discord using `sed`"
date = "2021-03-25"
aliases = [
"posts/text-substitution-in-discord-using-sed/",
]
description = """
Discord has (very primitive) support for text replacement using `sed` syntax.
"""
tags = [
"tutorial",
"discord",
"discord-tricks",
]
+++
## Tutorial
[Example Video](/blog/media/discord-tricks/sed-text-replacement.mov)
If you send a message using `sed` substitution format (`s/old text/new text`),
Discord will execute it on the message you've last sent.
## Caveats
- Regex is not supported
- Global substitution is not supported
*This post was adapted from [gitea:bbaovanc/discord-tricks][1]*
[1]: https://git.bbaovanc.com/bbaovanc/discord-tricks