mpfserver Manual
 
 
 mpf:replace | replace data in string
mpf:replace

replace all occurences of a specific string (oldString) by another string (newString)

{mpf:replace  }
=[oldString]
string to replace (old string)
||[newString]
replacing string (new string)
||data=[toreplace]
string to manipulate (required if used as single token, without closing token)
||var=[myvar]
variable to store parsed string into (token does not return value if this parameter is set)
|| convert=[lowercase|uppercase|upperfirst]
convert resulting string string
|| encode=[url|html|html-chars|crypt]
encode resulting string to another format
|| trim=[left|right|both]
remove whitespaces from resulting string
|| convert_section=[lowercase|uppercase|upperfirst]
convert section data (for use with closing token only)
|| parse_section=[yes|no]
parse section data for mpf-tokens (for use with closing token only)
|| encode_section=[url|html|html-chars|crypt]
encode section data to another format (for use with closing token only)
|| trim_section=[left|right|both]
remove whitespaces from section data (for use with closing token only)
|| [opr][condition]
condition may be used for fallbacks: if resulting string is does not meet criteria then original value will be left untouched
 
 
2004 by master-p-formance.All rights reserved.
 
This manual is generated on the fly using mpfserver and MPFT (mpf transformation).