[Tutor] string.replace() question

Shawhan, Doug (EM, ITS) Doug.Shawhan at ge.com
Mon Mar 29 11:20:17 EST 2004


I have a need to replace charachters *after* a certain point in a string:

To wit:

"c:\\tmp\\howdy\joe\howdy\moe"
becomes
"c:\\tmp\\howdy\\joe\\howdy\\moe"

is it possible somehow to use bitwise operations in string.replace()?

Something along the lines of:
addrbook=string.replace(addrbook,"\\","\\\\",[skip first two instances])

Thanks!

d 



More information about the Tutor mailing list