Timur Safin wrote: > anyone interested could ask him for the original version
The code uses lots of scratch variables rather than a simple S $E(...)=... syntax, argumentless FOR, etc. P is not correctly adjusted between iterations and thus works only because no substitution string happens to include a target character. What you describe as the "proper/fastest way" is certainly a better way.
