===== 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 ==== a$ = "Ouvi bossa e saí da fossa" print Replacex(a$,"bossa","sopa") print Replacex(a$, "[bf]ossa", "sopa") will display Ouvi sopa e saí da fossa Ouvi sopa e saí da sopa ==== 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|