PlaceholdersParsers
Replace Parser
The Replace Parser replaces occurrences of characters (or substrings) in the provided text.
Usage
{replace(find,replacement):text}
Examples
- Input:
{replace(o,i):welcome to the server}→welcime ti the server - Input:
{replace(1,6):{args}}(if{args}is1637812) →6637862 - Input:
{replace(, ):Test}→T e s t
Notes
- The parameter is split on the first comma into
findandreplacement. - Empty
findwill insert the replacement between characters. - Use this parser for simple character or substring replacements inside placeholders.