User Tools

Site Tools


el:replacex

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

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

New to Version

0.9.6.56

el/replacex.txt · Last modified: 2016/01/01 22:39 (external edit)