I'm in a situation where I need to explode a string which contains user input but a custom defined delimiter. I want to make sure the user cannot enter that delimiter in their input, so as not to explode the string in the wrong spot.
What is the best way to do this? Is there some type of filter I should run over the user data removing the occurrences of the delimiter? I'd think there would be a better answer than just creating a unique delimiter.
Thanks.