User Tools

Site Tools


syntax:functions:replace

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
syntax:functions:replace [2015/03/27 17:17] elenapsyntax:functions:replace [2015/04/03 18:33] elenap
Line 1: Line 1:
 ===== Replace(text, old_string, new_string) ===== ===== Replace(text, old_string, new_string) =====
  
-Replaces all entries of the //'old_string'// in the //'text'// with the //'new_string'//.+Replaces all entries of the //old_string// in the //text// with the //new_string//.
  
-All arguments are implicitly converted into text, if they are not.+All arguments are implicitly converted into text, if required.
  
 ^  Example  ^  Result  ^ ^  Example  ^  Result  ^
 |  replace('Food & Beverage', '&', 'and'   Food and Beverage  | |  replace('Food & Beverage', '&', 'and'   Food and Beverage  |
 |  replace('New York City', 'York City', 'Orleans' |  New Orleans  | |  replace('New York City', 'York City', 'Orleans' |  New Orleans  |
syntax/functions/replace.txt · Last modified: 2021/09/08 14:19 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki