Placeholder for replacing input through the multi replacement

A placeholder that allows you to replace input through the multi replacement.


Meaning

Allows you to replace input through the multi replacement in convenient and multifunctional way, that is, first value to one value, second value to another value, etc, like "a" to "b", "k" to "c" and so on, all in one placeholder.


Format
%CEP_replaceMulti_<replacements>_<input>%

<replacements> – the replacements in format like "<from1>=<to1>:<from2>=<to2>:<fromN>=<toN>...", you can use "\:" and "\=" to use colons and equal signs exactly as part as your replacements, and not part of format; (MANDATORY)

<input> – the input for replacion. (MANDATORY)



Targets
  • Strings.


Where is useful

For example, if you want to replace one different values to another different values in some message with any difficilty level at the same time efficiently and easily.


Examples
%CEP_replaceMulti_abc=NEW:ohj=NEW2_ahs hwd oj ohj ab abc gerdg% # Replace all "abc" to "NEW" and all "ohj" to "NEW2"
%CEP_replaceMulti_\:\=Hello=Bye:Hi=\=Goodbye\:_:=Hello hello hi Hi% # Replace all ":=Hello" to "Bye" and all "Hi" to "=Goodbye:"

Last updated