Home
About
Policies
FAQ
Forums
Registration
Password Recovery

Subst (MPI)

From Tapestries MUCK

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
-
[[Category:MPI functions]]
+
[[Category:MPI functions]][[Category:MPI String Functions]]
=subst=
=subst=
<mpi>{subst:str,old,new}</mpi>
<mpi>{subst:str,old,new}</mpi>

Revision as of 16:23, 30 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!"
Personal tools
Namespaces
Variants
Actions
navagation
information
wiki
Toolbox