Heya,
I've search through the wiki, but havent been able to locate an answer to my problem. Therefore, i ask here.
If i have a string: "Translucent Horse of Substitution" and i want to replace "Translucent " with "", what is the easiest way to do so?
Thanks!
Question about String Manipulation
Moderators: Lavish Software Team, Moderators
The answer for this one would be found here http://www.lavishsoft.com/wiki/index.ph ... ype:string
For substring substitution, there's no real easy answer. Single-character replacement is done fast by using a replacement table, but I cant do the same for substring. What you might want to do is use string.Find[substring]. If the word you're removing is always the first one, you can do something like echo ${MyString.Right[-${MyString.Find["Translucent "]}]}
For substring substitution, there's no real easy answer. Single-character replacement is done fast by using a replacement table, but I cant do the same for substring. What you might want to do is use string.Find[substring]. If the word you're removing is always the first one, you can do something like echo ${MyString.Right[-${MyString.Find["Translucent "]}]}