Subst (MPI)
From Tapestries MUCK
(Difference between revisions)
Line 1: | Line 1: | ||
- | [[Category: | + | [[Category:functions (MPI)]][[Category:String Functions (MPI)]] |
=subst= | =subst= | ||
<mpi>{subst:str,old,new}</mpi> | <mpi>{subst:str,old,new}</mpi> |
Latest revision as of 01:41, 31 March 2007
subst
{subst:str,old,new}
Returns a copy of 'str' with all substring instances of 'old' replaced by the text specified by 'new'.
Basically just substitutes the new text for the old text in str.
example:
{subst:Hello World!,l,r}would return "Herro Worrd!"