Hi,
Can anyone do me a quick script which will check a comma delimited list for an occurance of a given word, and if it exists, remove it.
i.e. LIST = "value1,value2,value3,value1"
I need the script to check the list for ALL occurances of a word which is passed to it via a variable. So if the word which is passed to the script is "value1", it should then remove both the "value1" from the list, then return the edited list back as the same variable it was given.
Any help would be greatly appreciated.
Many Thanks,
Mark
Can anyone do me a quick script which will check a comma delimited list for an occurance of a given word, and if it exists, remove it.
i.e. LIST = "value1,value2,value3,value1"
I need the script to check the list for ALL occurances of a word which is passed to it via a variable. So if the word which is passed to the script is "value1", it should then remove both the "value1" from the list, then return the edited list back as the same variable it was given.
Any help would be greatly appreciated.
Many Thanks,
Mark