Replace$

Takes one existing Source value, and two parameters, Search, NewVal

Description:

This command as well as the ReplaceAny$ command require a source value to the left of this calculation. For this reason, these commands can not be nested inside If/Else blocks.

This command uses the left Source value, searches it for the SearchVal, and replaces any found occurrences with the NewVal parameter.

Example:

[New] searchVal = "ab"
[New] newVal = "y"
[New] source = "abc"

source = Replace$ searchVal, newVal

Html source 'Result is equal to "yc"