User Tools

Site Tools


en:replace

Differences

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

Link to this comparison view

en:replace [2016/08/12 21:09]
admin
en:replace [2020/02/28 10:46]
Line 1: Line 1:
-===== Replace (Function) ===== 
- 
-==== Format ==== 
-**replace** ( [[stringexpressions|haystack_string_expression]] , //fromstring_expr// , //tostring_expr// )\\ 
-**replace** ( [[stringexpressions|haystack_string_expression]] , //fromstring_Expr// , //tostring_expr// , //caseinsensitive//) 
- 
-returns //String_value// 
- 
-==== Description ==== 
-Return a new string where all occurrences or //fromstring// are replaced by //tostring// in the string //haystack// You may also specify an optional boolean value //caseinsensitive// to specify that the search will treat upper and lower case letters the same. 
- 
-==== Example ==== 
-<code> 
-a$ = "We all live in a yellow submarine, yellow submarine, yellow submarine." 
-print Replace(a$,"yellow","blue") 
-print Replace(a$, "we", "Beatles", true)</code> 
-will display 
-<code> 
-We all live in a blue submarine, blue submarine, blue submarine. 
-Beatles all live in a yellow submarine, yellow submarine, yellow submarine. 
-</code> 
- 
-==== See Also ==== 
-{{page>en:start#String Handling&noheader}} 
- 
-==== History ====  
-|0.9.6.55|New to Version| 
  
en/replace.txt · Last modified: 2020/02/28 10:46 (external edit)