Replaces occurrences of a target string within the input string.
The input string is searched for the target string. When found the replacement string is inserted in place of the target string. The resulting string is then processed in the same way until target string is no longer found.
menu: veeos ==> math ==> strReplace
library: mathLib
o_strReplace("I thunk this is an unterestung strung","un","in")
returns "I think this is an interesting string"
This objects recursively looks through the string to find and replace strings. Hence it may be possible to have unintended results if one replacement triggers another. In the future may want to rewrite to take this into account.
VEE 7.0+. All platforms.