# substitute
## Syntax:
/substitute **{pattern}** **{replacement}** **[groupName]**
## Use Case:
Creates a new substitute to replace matched incoming text with new text. Can also colorize the substituted text.
## Arguments:
- **{pattern}**: The text or regex pattern to substitute.
- **{replacement}**: The text to replace the pattern with.
- **[groupName]**: *(Optional)* The group to assign this substitute to.
## Examples:
1. **/substitute {You are thirsty.} {DRINK WATER} {Warnings}**
2. **/substitute {A fat goblin} {A target}**
## See Also:
unsubstitute, disablesubstitute, enablesubstitute, groupsubstitutes
