in reply to Re: search and replace from array values
in thread search and replace from array values

The major difference is that your loop makes multiple passes through the string, and davidrw's does not. Depending on the size of the string and how many search terms there are, the performance difference can be quite significant.

Caution: Contents may have been coded under pressure.
  • Comment on Re^2: search and replace from array values