User Tools

Site Tools


el:replacex

Differences

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

Link to this comparison view

el:replacex [2016/01/01 22:39]
el:replacex [2020/02/28 10:46] (current)
Line 1: Line 1:
 +===== Replacex =====
 +
 +==== Formato ====
 +**replacex** ( //haystack// , //regex// , //tostring// )
 +
 +==== Description ====
 +Return a new string where all occurrences of substrings matching the regular expression //regex// are replaced by //tostring// in the string //haystack//.
 +
 +==== Example ====
 +<code>
 +a$ = "Ouvi bossa e saí da fossa"
 +print Replacex(a$,"bossa","sopa")
 +print Replacex(a$, "[bf]ossa", "sopa")
 +</code>
 +will display
 +<code>
 +Ouvi sopa e saí da fossa
 +Ouvi sopa e saí da sopa
 +</code>
 +==== New to Version ==== 
 +0.9.6.56