replacex( haystack, regex, tostring )
Return a new string where all occurrences of substrings matching the regular expression regex are replaced by tostring in the string haystack.
a$ = "We all live in a yellow submarine, yellow submarine, yellow submarine." print Replacex(a$,"ye.*ow","blue") print Replacex(a$,"[wW]e","Beatles")will display
We all live in a blue submarine. Beatles all live in a yellow submarine, yellow submarine, yellow submarine.
0.9.6.55