User Tools

Site Tools


en:replacex

Differences

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

Link to this comparison view

en:replacex [2016/08/12 21:16]
admin
en:replacex [2020/02/28 10:46]
Line 1: Line 1:
-===== Replacex (Function) ===== 
- 
-==== Formato ==== 
-**replacex** ( [[stringexpressions|haystack_string_expression]] , [[regularexpressions|regular_expression]] , [[stringexpressions|string_expression]] ) 
- 
- 
-returns [[stringexpressions|string_expression]] 
- 
-==== Description ==== 
-Return a new string where all occurrences of substrings matching the regular expression [[regularexpressions|regular_expression]] are replaced by [[stringexpressions|string_expression]] in the string [[stringexpressions|haystack_string_expression]]. 
- 
-==== 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> 
- 
-==== Notes ==== 
-By default the nature of regular expressions is "greedy". This behaviour can be changed using the [[regexminimal|RegexMinimal]] statement. 
- 
-==== See Also ==== 
-{{page>en:start#String Handling&noheader}} 
- 
-==== History ====  
-|0.9.6.56|New to Version| 
  
en/replacex.txt · Last modified: 2020/02/28 10:46 (external edit)